forked from enlightenment/enlightenment
handle null E_Comp->screen during randr2 shutdown
some output modules have no screen iface (e.g., buffer, wl_wl, wl_x11) and so this will always be null
This commit is contained in:
parent
f958317bf5
commit
691fb103b3
|
@ -110,7 +110,7 @@ e_randr2_shutdown(void)
|
|||
if (_screen_delay_timer) ecore_timer_del(_screen_delay_timer);
|
||||
_screen_delay_timer = NULL;
|
||||
// stop listening to driver info
|
||||
if (e_comp->screen->shutdown)
|
||||
if (e_comp->screen && e_comp->screen->shutdown)
|
||||
e_comp->screen->shutdown();
|
||||
// clear up all event handlers
|
||||
E_FREE_LIST(_ev_handlers, ecore_event_handler_del);
|
||||
|
|
Loading…
Reference in New Issue