mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(task_file_transfer.c) Attempt to fix rpng_nbio leak
This commit is contained in:
parent
91af356a31
commit
dba40157e3
2 changed files with 2 additions and 3 deletions
|
@ -227,8 +227,7 @@ void rpng_nbio_load_image_free(struct rpng_t *rpng)
|
|||
free(rpng->process.stream);
|
||||
}
|
||||
|
||||
if (rpng)
|
||||
free(rpng);
|
||||
free(rpng);
|
||||
}
|
||||
|
||||
bool rpng_nbio_load_image_argb_start(struct rpng_t *rpng)
|
||||
|
|
|
@ -332,7 +332,7 @@ static int cb_nbio_generic(nbio_handle_t *nbio, size_t *len)
|
|||
|
||||
if (!ptr)
|
||||
{
|
||||
free(nbio->image.handle);
|
||||
rpng_nbio_load_image_free(nbio->image.handle);
|
||||
nbio->image.handle = NULL;
|
||||
nbio->image.cb = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue