Add missing inflateEnd to fix memory leak in W_ReadLumpHeaderPwad

This commit is contained in:
Hannu Hanhi 2020-06-13 17:07:05 +03:00
parent f7e74e8884
commit 2f65955496

View file

@ -1314,6 +1314,7 @@ 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
{