mirror of
https://github.com/libretro/RetroArch
synced 2025-02-24 18:39:59 +00:00
(RPNG) Actually free zlib stream
This commit is contained in:
parent
c432811436
commit
c11498df9d
libretro-common/formats/png
@ -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…
x
Reference in New Issue
Block a user