Fixed another harmless but annoying leaks

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-09-22 18:46:00 +00:00
parent 60d9638ca4
commit d8d6865306
2 changed files with 10 additions and 0 deletions

View File

@ -114,6 +114,14 @@ void AddonsScreen::init()
// ----------------------------------------------------------------------------
void AddonsScreen::unloaded()
{
delete m_icon_bank;
m_icon_bank = NULL;
}
// ----------------------------------------------------------------------------
void AddonsScreen::tearDown()
{
// return tab stop to the center when leaving this screen!!

View File

@ -75,6 +75,8 @@ public:
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void loadedFromFile();
virtual void unloaded();
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void eventCallback(GUIEngine::Widget* widget, const std::string& name, const int playerID);