mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
commit
516ff5468f
@ -199,4 +199,8 @@ void nbio_free(struct nbio_t* handle)
|
||||
}
|
||||
fclose(handle->f);
|
||||
free(handle->data);
|
||||
|
||||
handle->f = NULL;
|
||||
handle->data = NULL;
|
||||
free(handle);
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user