Prevent yet even more crashes - sigh

This commit is contained in:
Twinaphex 2016-02-10 17:18:06 +01:00
parent 21c4a07cf0
commit c9c4c77d38

View File

@ -700,11 +700,11 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
}
break;
case RARCH_MENU_CTL_CONTEXT_RESET:
if (menu_driver_ctx->context_reset)
if (menu_driver_ctx && menu_driver_ctx->context_reset)
menu_driver_ctx->context_reset(menu_userdata);
break;
case RARCH_MENU_CTL_CONTEXT_DESTROY:
if (menu_driver_ctx->context_destroy)
if (menu_driver_ctx && menu_driver_ctx->context_destroy)
menu_driver_ctx->context_destroy(menu_userdata);
break;
case RARCH_MENU_CTL_SHADER_MANAGER_INIT: