(RMenu) Add safety check in rmenu_init

This commit is contained in:
twinaphex 2014-10-10 19:22:57 +02:00
parent 064fbfb35c
commit 6c51889430

View File

@ -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;
}