From: Chris Michael Date: Sat, 4 May 2013 11:26:25 +0000 (+0100) Subject: Check for valid wayland compositor and display before dispatching. X-Git-Tag: submit/efl/20131021.015651~713 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f80097f0cb1989df442d146701fa50cffd36305b;p=platform%2Fupstream%2Fenlightenment.git Check for valid wayland compositor and display before dispatching. Signed-off-by: Chris Michael --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index ac6a329..ee250bc 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -405,7 +405,7 @@ _e_comp_wl_cb_read(void *data EINA_UNUSED, Ecore_Fd_Handler *hdl EINA_UNUSED) static Eina_Bool _e_comp_wl_cb_idle(void *data EINA_UNUSED) { - if (_e_wl_comp->wl.display) + if ((_e_wl_comp) && (_e_wl_comp->wl.display)) { /* flush any clients before we idle */ wl_display_flush_clients(_e_wl_comp->wl.display);