mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Cleaner version of the W_ReadLumpHeaderPwad memory leak fix
This commit is contained in:
parent
2f65955496
commit
38c3d78d8a
1 changed files with 1 additions and 2 deletions
|
@ -1314,14 +1314,13 @@ size_t W_ReadLumpHeaderPwad(UINT16 wad, UINT16 lump, void *dest, size_t size, si
|
||||||
if (zErr == Z_STREAM_END)
|
if (zErr == Z_STREAM_END)
|
||||||
{
|
{
|
||||||
M_Memcpy(dest, decData, size);
|
M_Memcpy(dest, decData, size);
|
||||||
inflateEnd(&strm);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
size = 0;
|
size = 0;
|
||||||
zerr(zErr);
|
zerr(zErr);
|
||||||
(void)inflateEnd(&strm);
|
|
||||||
}
|
}
|
||||||
|
(void)inflateEnd(&strm);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue