Changeset 3042 for trunk


Ignore:
Timestamp:
07/30/15 14:49:26 (9 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Fixed wrong memory deallocation. Deleted only when memory is allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r3039 r3042  
    26572657  }
    26582658
    2659   STBaselineTable* btp;
     2659  STBaselineTable* btp = NULL;
    26602660  ROScalarColumn<Double> tcol = ROScalarColumn<Double>(table_, "TIME");
    26612661  Vector<Double> timeSecCol = tcol.getColumn();
     
    27342734  }
    27352735
    2736   delete btp;
     2736  if (btp != NULL) {
     2737        delete btp;
     2738  }
     2739
    27372740  return res;
    27382741}
Note: See TracChangeset for help on using the changeset viewer.