mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Do early return in case get_chosen_screen returns NULL
This commit is contained in:
parent
58ebbdeada
commit
3427d08c34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user