Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:19:14 PM (15 years ago)
Author:
landauf
Message:

replaced delete with destroy() in gamestates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/gamestates/GSGraphics.cc

    r5738 r5799  
    7474    {
    7575        InputManager::getInstance().destroyState("master");
    76         delete this->masterKeyBinder_;
     76        this->masterKeyBinder_->destroy();
    7777    }
    7878
     
    134134*/
    135135
    136         delete this->console_;
     136        this->console_->destroy();
    137137
    138138        Loader::unload(this->debugOverlay_);
    139139        delete this->debugOverlay_;
    140140
    141         delete this->soundManager_;
     141        this->soundManager_->destroy();
    142142
    143143        // HACK: (destroys a resource smart pointer)
Note: See TracChangeset for help on using the changeset viewer.