Changeset 18918


Ignore:
Timestamp:
12/03/14 15:18:15 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: special destructor for char* to avoid leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Options/GenericOption.h

    r15104 r18918  
    132132/*}}}*/
    133133
     134/*Special destructors when there is a pointer*/
     135template <> inline GenericOption<char*>::~GenericOption(){ /*{{{*/
     136
     137        if(name)   xDelete<char>(name);
     138        if(size)   xDelete<int>(size);
     139        if(value)  xDelete<char>(value);
     140}
     141/*}}}*/
     142
    134143#endif  /* _OPTIONOBJECT_H */
Note: See TracChangeset for help on using the changeset viewer.