- Fixed: crash when closing ZDoom in the save menu and a memory leak.
This commit is contained in:
parent
6dee878b2e
commit
c4af738bf6
2 changed files with 4 additions and 1 deletions
|
|
@ -749,6 +749,8 @@ int I_FindClose (void *handle)
|
|||
findstate_t *state = (findstate_t *)handle;
|
||||
if (handle != (void*)-1 && state->count > 0)
|
||||
{
|
||||
for(int i = 0;i < state->count;++i)
|
||||
free (state->namelist[i]);
|
||||
state->count = 0;
|
||||
free (state->namelist);
|
||||
state->namelist = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue