(RPNG) Actually free zlib stream

This commit is contained in:
Higor Eurípedes 2015-04-25 21:28:22 -03:00
parent c432811436
commit c11498df9d
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);