mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
glui: Fix potential memory leak
This commit is contained in:
parent
3440b97b4d
commit
de1de54ef6
@ -393,13 +393,12 @@ static void *glui_init(void)
|
||||
menu->userdata = (glui_handle_t*)calloc(1, sizeof(glui_handle_t));
|
||||
|
||||
if (!menu->userdata)
|
||||
{
|
||||
free(menu);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
glui = (glui_handle_t*)menu->userdata;
|
||||
|
||||
if (!glui)
|
||||
return NULL;
|
||||
|
||||
glui->bg = 0;
|
||||
|
||||
glui_init_core_info(menu);
|
||||
|
Loading…
Reference in New Issue
Block a user