mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(task_file_transfer.c) Attempt to fix rpng_nbio leak
This commit is contained in:
parent
91af356a31
commit
dba40157e3
@ -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…
x
Reference in New Issue
Block a user