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:
parent
4bcdd1c1d7
commit
f7d0e38a87
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user