mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +00:00
(RPNG) Actually free zlib stream
This commit is contained in:
parent
c432811436
commit
c11498df9d
@ -282,6 +282,9 @@ end:
|
||||
free(rpng.process.inflate_buf);
|
||||
|
||||
if (rpng.process.stream)
|
||||
{
|
||||
zlib_stream_free(rpng.process.stream);
|
||||
free(rpng.process.stream);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -222,7 +222,10 @@ void rpng_nbio_load_image_free(struct rpng_t *rpng)
|
||||
if (rpng->process.inflate_buf)
|
||||
free(rpng->process.inflate_buf);
|
||||
if (rpng->process.stream)
|
||||
{
|
||||
zlib_stream_free(rpng->process.stream);
|
||||
free(rpng->process.stream);
|
||||
}
|
||||
|
||||
if (rpng)
|
||||
free(rpng);
|
||||
|
Loading…
Reference in New Issue
Block a user