mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
Fix this memory freeing
This commit is contained in:
parent
969d606c6b
commit
aa9b36ac04
1 changed files with 1 additions and 1 deletions
|
@ -120,9 +120,9 @@ void W_Shutdown(void)
|
||||||
fclose(wadfiles[numwadfiles]->handle);
|
fclose(wadfiles[numwadfiles]->handle);
|
||||||
Z_Free(wadfiles[numwadfiles]->lumpinfo);
|
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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue