mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Protect against NULL driver
This commit is contained in:
parent
3a2e5a80b3
commit
1171cba2a4
@ -45,6 +45,8 @@ void apple_rarch_exited(void)
|
||||
NSEventType event_type;
|
||||
cocoa_input_data_t *apple = NULL;
|
||||
driver_t *driver = driver_get_ptr();
|
||||
if (!driver)
|
||||
return;
|
||||
[super sendEvent:event];
|
||||
|
||||
apple = (cocoa_input_data_t*)driver->input_data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user