mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 04:21:19 +00:00
Merge pull request #1147 from lioncash/leaks
rgui: Fix potential memory leak
This commit is contained in:
commit
dde17a5543
@ -417,6 +417,7 @@ static void *rgui_init(void)
|
|||||||
|
|
||||||
if (!menu->frame_buf)
|
if (!menu->frame_buf)
|
||||||
{
|
{
|
||||||
|
free(menu->userdata);
|
||||||
free(menu);
|
free(menu);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user