1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

(WIIU) check for NULL in gfd_free

This commit is contained in:
aliaspider 2018-01-07 03:40:03 +01:00
parent 517a3f801f
commit 7cc34302f4

View File

@ -320,8 +320,11 @@ typedef struct
void gfd_free(GFDFile* gfd)
{
MEM2_free(gfd->data);
free(gfd);
if(gfd)
{
MEM2_free(gfd->data);
free(gfd);
}
}
static bool gfd_relocate_block(GFDBlock* block)