Changeset 5799 for code/branches/core5/src/modules
- Timestamp:
- Sep 26, 2009, 10:19:14 PM (15 years ago)
- Location:
- code/branches/core5/src/modules/gamestates
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSGraphics.cc
r5738 r5799 74 74 { 75 75 InputManager::getInstance().destroyState("master"); 76 delete this->masterKeyBinder_;76 this->masterKeyBinder_->destroy(); 77 77 } 78 78 … … 134 134 */ 135 135 136 delete this->console_;136 this->console_->destroy(); 137 137 138 138 Loader::unload(this->debugOverlay_); 139 139 delete this->debugOverlay_; 140 140 141 delete this->soundManager_;141 this->soundManager_->destroy(); 142 142 143 143 // HACK: (destroys a resource smart pointer) -
code/branches/core5/src/modules/gamestates/GSLevel.cc
r5738 r5799 188 188 if (this->radar_) 189 189 { 190 delete this->radar_;190 this->radar_->destroy(); 191 191 this->radar_ = 0; 192 192 } … … 200 200 if (this->playerManager_) 201 201 { 202 delete this->playerManager_;202 this->playerManager_->destroy(); 203 203 this->playerManager_ = 0; 204 204 } … … 218 218 if (this->keyBinder_) 219 219 { 220 delete this->keyBinder_;220 this->keyBinder_->destroy(); 221 221 this->keyBinder_ = 0; 222 222 } -
code/branches/core5/src/modules/gamestates/GSMainMenu.cc
r5738 r5799 65 65 66 66 this->scene_->getSceneManager()->destroyCamera(this->camera_); 67 delete this->scene_;67 this->scene_->destroy(); 68 68 } 69 69 … … 108 108 void GSMainMenu::deactivate() 109 109 { 110 delete this->ambient_;110 this->ambient_->destroy(); 111 111 112 112 InputManager::getInstance().leaveState("mainMenu"); -
code/branches/core5/src/modules/gamestates/GSRoot.cc
r5785 r5799 99 99 */ 100 100 101 delete this->levelManager_;101 this->levelManager_->destroy(); 102 102 } 103 103
Note: See TracChangeset
for help on using the changeset viewer.