diff --git a/src/states_screens/gp_info_screen.cpp b/src/states_screens/gp_info_screen.cpp index 47142ed29..b90f5f504 100644 --- a/src/states_screens/gp_info_screen.cpp +++ b/src/states_screens/gp_info_screen.cpp @@ -511,3 +511,10 @@ void GPInfoScreen::updateHighscores() m_highscore_list->addItem(StringUtils::toString(i),row); } } // updateHighscores + +// ----------------------------------------------------------------------- +void GPInfoScreen::unloaded() +{ + delete m_icon_bank; + m_icon_bank = NULL; +} // unloaded diff --git a/src/states_screens/gp_info_screen.hpp b/src/states_screens/gp_info_screen.hpp index 397105559..ba04c5937 100644 --- a/src/states_screens/gp_info_screen.hpp +++ b/src/states_screens/gp_info_screen.hpp @@ -108,6 +108,7 @@ public: virtual void onUpdate(float dt) OVERRIDE; void setGP(const std::string &gp_ident); + virtual void unloaded() OVERRIDE; }; // GPInfoScreen #endif