Fix memory leak
This commit is contained in:
parent
216ac8b988
commit
c4fdf9c8ac
@ -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
|
||||
|
@ -108,6 +108,7 @@ public:
|
||||
virtual void onUpdate(float dt) OVERRIDE;
|
||||
|
||||
void setGP(const std::string &gp_ident);
|
||||
virtual void unloaded() OVERRIDE;
|
||||
}; // GPInfoScreen
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user