HarvesterFactory::~HarvesterFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
BuildingFactory::~BuildingFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
CSRManager::~CSRManager() { CategoryList::iterator iter = mCategoryList.begin(); while (!mCategoryList.empty()) { SubCategoryList* subCatList = (*iter)->GetSubCategories(); SubCategoryList::iterator subIter = subCatList->begin(); while (!subCatList->empty()) { delete (*subIter); subCatList->erase(subIter); subIter = subCatList->begin(); } delete (*iter); mCategoryList.erase(iter); iter = mCategoryList.begin(); } _unregisterCallbacks(); _destroyDatabindings(); mInsFlag = false; mSingleton = NULL; // delete(mSingleton); }
BadgeRegionFactory::~BadgeRegionFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
ResourceManager::~ResourceManager() { _destroyDatabindings(); ResourceCategoryMap::iterator catIt = mResourceCategoryMap.begin(); while(catIt != mResourceCategoryMap.end()) { delete((*catIt).second); mResourceCategoryMap.erase(catIt++); } ResourceTypeMap::iterator typeIt = mResourceTypeMap.begin(); while(typeIt != mResourceTypeMap.end()) { delete((*typeIt).second); mResourceTypeMap.erase(typeIt++); } ResourceIdMap::iterator resIt = mResourceIdMap.begin(); while(resIt != mResourceIdMap.end()) { delete((*resIt).second); mResourceIdMap.erase(resIt++); } mInsFlag = false; delete(mSingleton); }
TicketCollectorFactory::~TicketCollectorFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
InventoryFactory::~InventoryFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
ShuttleFactory::~ShuttleFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
PersistentNpcFactory::~PersistentNpcFactory() { _destroyDatabindings(); mInsFlag = false; //delete(mSingleton); }
WaypointFactory::~WaypointFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
TerminalFactory::~TerminalFactory() { _destroyDatabindings(); mInsFlag = false; delete(mSingleton); }
NonPersistentItemFactory::~NonPersistentItemFactory() { _destroyDatabindings(); mSingleton = NULL; }
ContainerObjectFactory::~ContainerObjectFactory() { _destroyDatabindings(); }