Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 22, 2005, 1:06:39 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Background for the Shell

Location:
trunk/src/util/loading
Files:
2 edited

Legend:

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

    r4860 r5099  
    197197LoadParamDescription::~LoadParamDescription()
    198198{
    199   for(int i = 0; i < this->paramCount; i++)
     199  if (this->types != NULL)
    200200  {
    201     delete this->types[i];
     201    for(int i = 0; i < this->paramCount; i++)
     202    {
     203      delete []this->types[i];
     204    }
    202205  }
    203   for(int i = 0; i < this->paramCount; i++)
     206  if (this->defaultValues != NULL)
    204207  {
    205     delete this->defaultValues[i];
     208    for(int i = 0; i < this->paramCount; i++)
     209    {
     210      delete []this->defaultValues[i];
     211    }
    206212  }
    207213
  • trunk/src/util/loading/load_param.h

    r5039 r5099  
    135135        PRINTF(4)("Not loaded parameter %s of %s\n", paramName, pt2Object->getClassName()); \
    136136    }
    137 
    138137
    139138// 2. TYPES
Note: See TracChangeset for help on using the changeset viewer.