Fixes another memory leak
This commit is contained in:
parent
7e71fcc773
commit
9968b377a5
|
@ -518,6 +518,9 @@ resetGame(void)
|
||||||
if (charSelectMenu)
|
if (charSelectMenu)
|
||||||
menu_destroy(charSelectMenu);
|
menu_destroy(charSelectMenu);
|
||||||
charSelectMenu = NULL;
|
charSelectMenu = NULL;
|
||||||
|
if (characterSelectScreen)
|
||||||
|
screen_destroy(characterSelectScreen);
|
||||||
|
charSelectMenu = NULL;
|
||||||
|
|
||||||
if (creditsScreen)
|
if (creditsScreen)
|
||||||
screen_destroy(creditsScreen);
|
screen_destroy(creditsScreen);
|
||||||
|
|
Loading…
Reference in New Issue