mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Merge branch 'maint'
This commit is contained in:
commit
bc71d4537e
2 changed files with 4 additions and 1 deletions
|
@ -131,7 +131,8 @@ void ClearSaveGames()
|
||||||
{
|
{
|
||||||
for(unsigned i=0;i<DLoadSaveMenu::SaveGames.Size(); i++)
|
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();
|
DLoadSaveMenu::SaveGames.Clear();
|
||||||
}
|
}
|
||||||
|
|
|
@ -749,6 +749,8 @@ int I_FindClose (void *handle)
|
||||||
findstate_t *state = (findstate_t *)handle;
|
findstate_t *state = (findstate_t *)handle;
|
||||||
if (handle != (void*)-1 && state->count > 0)
|
if (handle != (void*)-1 && state->count > 0)
|
||||||
{
|
{
|
||||||
|
for(int i = 0;i < state->count;++i)
|
||||||
|
free (state->namelist[i]);
|
||||||
state->count = 0;
|
state->count = 0;
|
||||||
free (state->namelist);
|
free (state->namelist);
|
||||||
state->namelist = NULL;
|
state->namelist = NULL;
|
||||||
|
|
Loading…
Reference in a new issue