mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
Cleanup rpng_nbio_load_image_argb_init
This commit is contained in:
parent
d2206b8ab2
commit
fdc3aeffb0
@ -375,13 +375,10 @@ struct rpng_t *rpng_nbio_load_image_argb_init(const char *path)
|
||||
return rpng;
|
||||
|
||||
error:
|
||||
if (rpng->userdata)
|
||||
nbio_free((struct nbio_t*)rpng->userdata);
|
||||
if (rpng)
|
||||
{
|
||||
rpng->userdata = NULL;
|
||||
free(rpng);
|
||||
}
|
||||
if (nbread)
|
||||
nbio_free(nbread);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user