Changeset 5211 in orxonox.OLD for trunk/src/util
- Timestamp:
- Sep 21, 2005, 2:21:41 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5141 r5211 133 133 this->types = NULL; 134 134 this->description = NULL; 135 this->defaultValues = NULL; 135 136 this->paramName = new char[strlen(paramName)+1]; 136 137 strcpy(this->paramName, paramName); 137 this->defaultValues = NULL;138 138 } 139 139 … … 158 158 } 159 159 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; 164 164 } 165 165 -
trunk/src/util/resource_manager.cc
r5208 r5211 81 81 } 82 82 delete tmpIt; 83 84 83 delete this->imageDirs; 84 85 delete[] this->dataDir; 85 86 86 87 ResourceManager::singletonRef = NULL; … … 356 357 PRINTF(4)("Image %s resides to %s\n", fileName, imgName); 357 358 tmpResource->pointer = new Texture(imgName); 358 delete []imgName;359 delete[] imgName; 359 360 break; 360 361 } 361 delete []imgName;362 delete[] imgName; 362 363 tmpDir = iterator->nextElement(); 363 364 } … … 375 376 if (tmpResource->pointer) 376 377 this->resourceList->add(tmpResource); 377 delete []fullName;378 delete[] fullName; 378 379 } 379 380 if (tmpResource->pointer) … … 631 632 } 632 633 else 634 { 635 delete[] tmpDirName; 633 636 return false; 637 } 634 638 } 635 639
Note: See TracChangeset
for help on using the changeset viewer.