Fixed memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3ebdd0e396
commit
c35b36db3a
@ -81,6 +81,12 @@ UnlockManager::~UnlockManager()
|
||||
{
|
||||
save();
|
||||
|
||||
for(AllChallengesType::iterator i =m_all_challenges.begin();
|
||||
i!=m_all_challenges.end(); i++)
|
||||
{
|
||||
delete i->second;
|
||||
}
|
||||
|
||||
// sfx_manager is destroyed before UnlockManager is, so SFX will be already deleted
|
||||
// sfx_manager->deleteSFX(m_locked_sound);
|
||||
} // ~UnlockManager
|
||||
|
Loading…
Reference in New Issue
Block a user