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:
parent
7e4ff8e0b5
commit
ed624633aa
@ -777,6 +777,12 @@ namespace GUIEngine
|
|||||||
|
|
||||||
void clearScreenCache()
|
void clearScreenCache()
|
||||||
{
|
{
|
||||||
|
Screen* screen;
|
||||||
|
for_in (screen, g_loaded_screens)
|
||||||
|
{
|
||||||
|
screen->unload();
|
||||||
|
}
|
||||||
|
|
||||||
g_loaded_screens.clearAndDeleteAll();
|
g_loaded_screens.clearAndDeleteAll();
|
||||||
g_current_screen = NULL;
|
g_current_screen = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user