fix crash caused by forgetting to remove a GUI element from the main

window when switching menus
This commit is contained in:
Daryl Borth 2016-06-24 21:23:15 -06:00
parent 67deab812b
commit 5483f0f444

View File

@ -1107,6 +1107,7 @@ static int MenuGameSelection()
mainWindow->Remove(&buttonWindow); mainWindow->Remove(&buttonWindow);
mainWindow->Remove(&gameBrowser); mainWindow->Remove(&gameBrowser);
mainWindow->Remove(&preview); mainWindow->Remove(&preview);
mainWindow->Remove(&bgPreview);
MEM_DEALLOC(imgBuffer); MEM_DEALLOC(imgBuffer);
return menu; return menu;
} }