- Fixed: crash when closing ZDoom in the save menu and a memory leak.

This commit is contained in:
Braden Obrzut 2013-07-29 18:30:26 -04:00
commit eb5d57be06
2 changed files with 4 additions and 1 deletions

View file

@ -131,7 +131,8 @@ void ClearSaveGames()
{
for(unsigned i=0;i<DLoadSaveMenu::SaveGames.Size(); i++)
{
delete DLoadSaveMenu::SaveGames[i];
if(!DLoadSaveMenu::SaveGames[i]->bNoDelete)
delete DLoadSaveMenu::SaveGames[i];
}
DLoadSaveMenu::SaveGames.Clear();
}