Do early return in case get_chosen_screen returns NULL

This commit is contained in:
twinaphex 2016-01-15 14:00:11 +01:00
parent 58ebbdeada
commit 3427d08c34

View File

@ -116,11 +116,9 @@ void apple_rarch_exited(void)
#endif
apple = (cocoa_input_data_t*)input_driver_get_data();
if (!apple)
if (!apple || !screen)
return;
(void)screen;
/* Relative */
apple->mouse_rel_x = event.deltaX;
apple->mouse_rel_y = event.deltaY;