Fixed leaks associated with changing language

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-10-16 16:00:10 +00:00
parent 7e4ff8e0b5
commit ed624633aa

View File

@ -777,6 +777,12 @@ namespace GUIEngine
void clearScreenCache()
{
Screen* screen;
for_in (screen, g_loaded_screens)
{
screen->unload();
}
g_loaded_screens.clearAndDeleteAll();
g_current_screen = NULL;
}