Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5211 in orxonox.OLD for trunk/src/util/loading


Ignore:
Timestamp:
Sep 21, 2005, 2:21:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind mem-leak-recovered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/load_param.cc

    r5141 r5211  
    133133  this->types = NULL;
    134134  this->description = NULL;
     135  this->defaultValues = NULL;
    135136  this->paramName = new char[strlen(paramName)+1];
    136137  strcpy(this->paramName, paramName);
    137   this->defaultValues = NULL;
    138138}
    139139
     
    158158  }
    159159
    160   delete []this->types;
    161   delete []this->defaultValues;
    162   delete []this->paramName;
    163   delete []this->description;
     160  delete[] this->types;
     161  delete[] this->defaultValues;
     162  delete[] this->paramName;
     163  delete[] this->description;
    164164}
    165165
Note: See TracChangeset for help on using the changeset viewer.