Cleaner version of the W_ReadLumpHeaderPwad memory leak fix

This commit is contained in:
Hannu Hanhi 2020-06-13 21:37:33 +03:00
parent 2f65955496
commit 38c3d78d8a

View file

@ -1314,14 +1314,13 @@ size_t W_ReadLumpHeaderPwad(UINT16 wad, UINT16 lump, void *dest, size_t size, si
if (zErr == Z_STREAM_END)
{
M_Memcpy(dest, decData, size);
inflateEnd(&strm);
}
else
{
size = 0;
zerr(zErr);
(void)inflateEnd(&strm);
}
(void)inflateEnd(&strm);
}
else
{