mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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…
x
Reference in New Issue
Block a user