Changeset 18847


Ignore:
Timestamp:
11/25/14 09:18:31 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_thermal_nonlinear.cpp

    r18621 r18847  
    6868                        SystemMatricesx(&Kff,&Kfs,&pf,&df,NULL,femmodel);
    6969                        /*Update old solution, such that sizes of tf_old and tf are comparable*/
    70                         if(isdynamicbasalspc)   Reducevectorgtofx(&tf_old, tg, femmodel->nodes,femmodel->parameters);
     70                        if(isdynamicbasalspc){
     71                                delete tf_old;
     72                                Reducevectorgtofx(&tf_old, tg, femmodel->nodes,femmodel->parameters);
     73                        }
    7174                }
    7275                else SystemMatricesx(&Kff, &Kfs, &pf,&df, &melting_offset,femmodel);
Note: See TracChangeset for help on using the changeset viewer.