mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(RMenu) Add safety check in rmenu_init
This commit is contained in:
parent
064fbfb35c
commit
6c51889430
@ -306,6 +306,10 @@ static void *rmenu_init(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
menu_texture = (struct texture_image*)calloc(1, sizeof(*menu_texture));
|
menu_texture = (struct texture_image*)calloc(1, sizeof(*menu_texture));
|
||||||
|
|
||||||
|
if (!menu_texture)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user