Fix this memory freeing

This commit is contained in:
TehRealSalt 2018-11-29 22:31:20 -05:00
parent 969d606c6b
commit aa9b36ac04

View file

@ -120,9 +120,9 @@ void W_Shutdown(void)
fclose(wadfiles[numwadfiles]->handle);
Z_Free(wadfiles[numwadfiles]->lumpinfo);
Z_Free(wadfiles[numwadfiles]->filename);
Z_Free(wadfiles[numwadfiles]);
while (wadfiles[numwadfiles]->numlumps--)
Z_Free(wadfiles[numwadfiles]->lumpinfo[wadfiles[numwadfiles]->numlumps].name2);
Z_Free(wadfiles[numwadfiles]);
}
}