mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +00:00
(RPNG) Free zlib stream
This commit is contained in:
parent
1532ab3a58
commit
c432811436
@ -280,5 +280,8 @@ end:
|
||||
free(*data);
|
||||
free(rpng.idat_buf.data);
|
||||
free(rpng.process.inflate_buf);
|
||||
|
||||
if (rpng.process.stream)
|
||||
zlib_stream_free(rpng.process.stream);
|
||||
return ret;
|
||||
}
|
||||
|
@ -221,6 +221,8 @@ void rpng_nbio_load_image_free(struct rpng_t *rpng)
|
||||
free(rpng->idat_buf.data);
|
||||
if (rpng->process.inflate_buf)
|
||||
free(rpng->process.inflate_buf);
|
||||
if (rpng->process.stream)
|
||||
zlib_stream_free(rpng->process.stream);
|
||||
|
||||
if (rpng)
|
||||
free(rpng);
|
||||
|
Loading…
Reference in New Issue
Block a user