Changeset 7373


Ignore:
Timestamp:
02/07/11 11:00:10 (14 years ago)
Author:
Mathieu Morlighem
Message:

Fixed many leaks...

Location:
issm/trunk/src/c/objects/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r7370 r7373  
    640640        ElementMatrix* Ke=new ElementMatrix(Ke1,Ke2);
    641641       
     642        /*clean-up and return*/
     643        delete Ke1;
     644        delete Ke2;
    642645        return Ke;
    643646}
     
    783786
    784787        /*Initialize Element matrix and return if necessary*/
    785         if(IsOnWater()) return NULL;
    786 
    787788        ElementMatrix* Ke1=new ElementMatrix(pentabase->nodes,NUMVERTICES,this->parameters,MacAyealApproximationEnum);
    788789        ElementMatrix* Ke2=new ElementMatrix(this->nodes     ,NUMVERTICES,this->parameters,StokesApproximationEnum);
     
    12431244/*FUNCTION Penta::CreateKMatrixDiagnosticPattyn{{{1*/
    12441245ElementMatrix* Penta::CreateKMatrixDiagnosticPattyn(void){
    1245        
    12461246
    12471247        /*compute all stiffness matrices for this element*/
     
    12531253        delete Ke1;
    12541254        delete Ke2;
    1255 
    12561255        return Ke;
    12571256
     
    15201519ElementMatrix* Penta::CreateKMatrixDiagnosticVert(void){
    15211520       
    1522 
    15231521        /*compute all stiffness matrices for this element*/
    15241522        ElementMatrix* Ke1=CreateKMatrixDiagnosticVertVolume();
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r7370 r7373  
    758758ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyeal(void){
    759759
    760 
    761760        /*compute all stiffness matrices for this element*/
    762761        ElementMatrix* Ke1=CreateKMatrixDiagnosticMacAyealViscous();
     
    768767        delete Ke2;
    769768        return Ke;
    770 
    771769}
    772770/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.