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:
Mike Blumenkrantz 2017-03-10 15:57:16 -05:00
parent 05ef0b0280
commit 32c55ebc51
1 changed files with 1 additions and 1 deletions

View File

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