Merge pull request #1660 from heuripedes/master

Mem leak fixes
This commit is contained in:
Twinaphex 2015-04-26 02:47:01 +02:00
commit 825393e1d1
3 changed files with 8 additions and 0 deletions

View File

@ -239,6 +239,7 @@ void core_info_list_free(core_info_list_t *core_info_list)
continue;
free(info->path);
free(info->core_name);
free(info->systemname);
free(info->system_manufacturer);
free(info->display_name);

View File

@ -175,6 +175,7 @@ bool rpng_load_image_argb_iterate(FILE **fd, struct rpng_t *rpng)
return false;
}
png_free_chunk(&chunk);
rpng->has_ihdr = true;
break;
@ -282,6 +283,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);