Changeset 16744


Ignore:
Timestamp:
11/13/13 15:47:27 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing memory leaks (input needs to be freed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp

    r16740 r16744  
    338338/*}}}*/
    339339/*FUNCTION TransientInput::GetResultInterpolation{{{*/
    340 int  TransientInput::GetResultInterpolation(void){
    341 
    342         IssmDouble time;
    343         parameters->FindParam(&time,TimeEnum);
    344         Input* input=GetTimeInput(time);
    345         return input->GetResultInterpolation();
     340int TransientInput::GetResultInterpolation(void){
     341
     342        IssmDouble time;
     343        int        output;
     344
     345        parameters->FindParam(&time,TimeEnum);
     346        Input* input=GetTimeInput(time);
     347        output = input->GetResultInterpolation();
     348
     349        /*Clean up and return*/
     350        delete input;
     351        return output;
    346352
    347353}
Note: See TracChangeset for help on using the changeset viewer.