Fixed segfault when deleting callback manager.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-11-08 00:56:19 +00:00
parent 4bcdd1c1d7
commit f7d0e38a87
2 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ CallbackManager::~CallbackManager()
{
delete *c;
}
m_allCallbacks[i].clear();
} // for c in m_allCallbacks[i]
m_allCallbacks[i].clear();
} // for i <CB_MAX
} // ~CallbackManager

View File

@ -481,7 +481,7 @@ void CleanTuxKart()
if(highscore_manager) delete highscore_manager;
if(attachment_manager) delete attachment_manager;
if(item_manager) delete item_manager;
//if(delete callback_manager) delete callback_manager; //segfaults if uncommented
if(callback_manager) delete callback_manager;
if(powerup_manager) delete powerup_manager;
if(projectile_manager) delete projectile_manager;
if(kart_properties_manager) delete kart_properties_manager;