Prevent yet even more crashes - sigh
This commit is contained in:
parent
21c4a07cf0
commit
c9c4c77d38
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue