Protect against NULL driver

This commit is contained in:
twinaphex 2015-05-06 03:57:54 +02:00
parent 3a2e5a80b3
commit 1171cba2a4

View File

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