void FreeScriptLibrary() { // Free Spell Summary delete []SpellSummary; // Free resources before library unload for (SDScriptVec::const_iterator itr = m_scripts.begin(); itr != m_scripts.end(); ++itr) delete *itr; m_scripts.clear(); num_sc_scripts = 0; }
MANGOS_DLL_EXPORT void FreeScriptLibrary() { // Free Spell Summary delete []SpellSummary; // Free resources before library unload for (SDScriptVec::const_iterator itr = m_scripts.begin(); itr != m_scripts.end(); ++itr) delete *itr; m_scripts.clear(); num_sc_scripts = 0; setScriptLibraryErrorFile(NULL, NULL); }
MANGOS_DLL_EXPORT void FreeScriptLibrary() { // Free Spell Summary delete []SpellSummary; // Free resources before library unload for (SDScriptVec::const_iterator itr = m_scripts.begin(); itr != m_scripts.end(); ++itr) delete *itr; m_scripts.clear(); for (std::map<std::string, Script*>::iterator itr = m_scriptStorage.begin(); itr != m_scriptStorage.end(); ++itr) delete itr->second; num_sc_scripts = 0; SD2Database.HaltDelayThread(); }