Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:21:26 PM (16 years ago)
Author:
landauf
Message:

replaced delete with destroy() in modules

Location:
code/branches/core5/src/modules/questsystem
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/questsystem/QuestGUI.cc

    r5748 r5800  
    7979       
    8080        if(this->root_ != NULL)
    81             delete this->root_;
     81            this->root_->destroy();
    8282    }
    8383
     
    146146            COUT(3) << "Clearing Node '" << *str << "' ..." << std::endl;
    147147            delete str;
    148             delete node;
     148            node->destroy();
    149149        }
    150150        this->nodes_.clear();
  • code/branches/core5/src/modules/questsystem/QuestManager.cc

    r5755 r5800  
    7676        for(std::map<PlayerInfo*, QuestGUI*>::iterator it = this->questGUIs_.begin(); it != this->questGUIs_.end(); it++)
    7777        {
    78             delete (*it).second;
     78            (*it).second->destroy();
    7979        }
    8080        this->questGUIs_.clear();
  • code/branches/core5/src/modules/questsystem/notifications/NotificationQueue.cc

    r5748 r5800  
    426426        this->containers_.erase(container);
    427427        this->overlays_.erase(container->notification);
    428         delete container->overlay;
     428        container->overlay->destroy();
    429429        delete container;
    430430        this->size_= this->size_-1;
Note: See TracChangeset for help on using the changeset viewer.