Changeset 4137


Ignore:
Timestamp:
06/22/10 18:39:29 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor deleaking

Location:
issm/trunk/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/modules/VerticesDofx/VerticesDofx.cpp

    r4063 r4137  
    2525        DofVec* tpartition=NULL;
    2626
    27         if(*ppartition)return; //do not create partition vector twice! we only have on set of vertices
     27        if(*ppartition) return; //do not create partition vector twice! we only have on set of vertices
    2828
    2929        /*Initialize dofvecs: */
  • TabularUnified issm/trunk/src/c/objects/FemModel.cpp

    r4122 r4137  
    3232        this->analysis_counter=nummodels-1; //point to last analysis_type carried out.
    3333        this->results=new DataSet(); //not initialized by CreateDataSets
     34        this->partition=NULL;
     35        this->tpartition=NULL;
    3436       
    3537        /*Dynamically allocate whatever is a list of length nummodels: */
     
    6062       
    6163                _printf_("      create degrees of freedom\n");
    62                 VerticesDofx( &partition,&tpartition,vertices,parameters);
     64                VerticesDofx(&partition,&tpartition,vertices,parameters);
    6365                NodesDofx(nodes,parameters);
    6466
     
    116118
    117119        /*Delete dynamically allocated arrays: */
    118         delete m_Rmg;
    119         delete m_Gmn;
    120         delete m_nodesets;
    121         delete m_yg;
    122         delete m_ys;
     120        xfree((void**)&m_Rmg);
     121        xfree((void**)&m_Gmn);
     122        xfree((void**)&m_nodesets);
     123        xfree((void**)&m_yg);
     124        xfree((void**)&m_ys);
    123125
    124126}
  • TabularUnified issm/trunk/src/c/objects/Hook.cpp

    r3791 r4137  
    9292}
    9393/*}}}*/
    94 /*FUNCTION Hook::Hook(Hook* input) {{{1*/
     94/*FUNCTION Hook::copy(Hook* input) {{{1*/
    9595void Hook::copy(Hook* input){
    9696
Note: See TracChangeset for help on using the changeset viewer.