Changeset 5208 in orxonox.OLD for trunk/src/util
- Timestamp:
- Sep 19, 2005, 8:36:45 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/game_loader.cc
r5195 r5208 107 107 { 108 108 this->currentCampaign = this->fileToCampaign(campaignName); 109 delete campaignName;109 delete[] campaignName; 110 110 } 111 111 // World* world0 = new World(DEBUG_WORLD_0); -
trunk/src/util/resource_manager.cc
r5121 r5208 96 96 if (isDir(realDir)) 97 97 { 98 delete this->dataDir;98 delete[] this->dataDir; 99 99 this->dataDir = new char[strlen(realDir)+1]; 100 100 strcpy(this->dataDir, realDir); … … 126 126 sprintf(testFile, "%s%s", this->dataDir, fileInside); 127 127 retVal = isFile(testFile); 128 delete testFile;128 delete[] testFile; 129 129 return retVal; 130 130 } … … 382 382 { 383 383 PRINTF(2)("Resource %s could not be loaded\n", fileName); 384 delete[] tmpResource->name; 384 385 delete tmpResource; 385 386 return NULL; … … 456 457 // deleting the List Entry: 457 458 PRINTF(4)("Resource %s safely removed.\n", resource->name); 458 delete []resource->name;459 delete[] resource->name; 459 460 this->resourceList->remove(resource); 460 461 } … … 625 626 else 626 627 { 627 delete tmpDirName;628 delete[] tmpDirName; 628 629 return false; 629 630 } … … 653 654 )) 654 655 { 655 delete tmpFileName;656 delete[] tmpFileName; 656 657 return true; 657 658 } 658 659 else 659 660 { 660 delete tmpFileName;661 delete[] tmpFileName; 661 662 return false; 662 663 } … … 664 665 else 665 666 { 666 delete tmpFileName;667 delete[] tmpFileName; 667 668 return false; 668 669 } … … 682 683 { 683 684 PRINTF(1)("could not open %s fro writing\n", fileName); 685 delete[] tmpName; 684 686 return false; 685 687 } 686 688 fclose(stream); 687 689 688 delete tmpName;690 delete[] tmpName; 689 691 } 690 692 … … 699 701 char* tmpName = ResourceManager::homeDirCheck(fileName); 700 702 unlink(tmpName); 701 delete tmpName;703 delete[] tmpName; 702 704 } 703 705 … … 748 750 else 749 751 { 750 delete retName;752 delete[] retName; 751 753 return NULL; 752 754 }
Note: See TracChangeset
for help on using the changeset viewer.