mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
|
||||
menu_texture = (struct texture_image*)calloc(1, sizeof(*menu_texture));
|
||||
|
||||
if (!menu_texture)
|
||||
return NULL;
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user