Fixes another memory leak

This commit is contained in:
Linus Probert 2018-10-24 08:30:53 +02:00
parent 7e71fcc773
commit 9968b377a5
1 changed files with 3 additions and 0 deletions

View File

@ -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);