rgui: Fix potential memory leak
This commit is contained in:
parent
114eca338f
commit
4bd2c6b786
|
@ -417,6 +417,7 @@ static void *rgui_init(void)
|
|||
|
||||
if (!menu->frame_buf)
|
||||
{
|
||||
free(menu->userdata);
|
||||
free(menu);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue