mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
Free lump names *before* either lumpinfo or the WAD itself!
This commit is contained in:
parent
305ad4f73e
commit
e0a1c43813
1 changed files with 2 additions and 2 deletions
|
@ -116,11 +116,11 @@ void W_Shutdown(void)
|
||||||
while (numwadfiles--)
|
while (numwadfiles--)
|
||||||
{
|
{
|
||||||
fclose(wadfiles[numwadfiles]->handle);
|
fclose(wadfiles[numwadfiles]->handle);
|
||||||
Z_Free(wadfiles[numwadfiles]->lumpinfo);
|
|
||||||
Z_Free(wadfiles[numwadfiles]->filename);
|
Z_Free(wadfiles[numwadfiles]->filename);
|
||||||
Z_Free(wadfiles[numwadfiles]);
|
|
||||||
while (wadfiles[numwadfiles]->numlumps--)
|
while (wadfiles[numwadfiles]->numlumps--)
|
||||||
Z_Free(wadfiles[numwadfiles]->lumpinfo[wadfiles[numwadfiles]->numlumps].name2);
|
Z_Free(wadfiles[numwadfiles]->lumpinfo[wadfiles[numwadfiles]->numlumps].name2);
|
||||||
|
Z_Free(wadfiles[numwadfiles]->lumpinfo);
|
||||||
|
Z_Free(wadfiles[numwadfiles]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue