From f80097f0cb1989df442d146701fa50cffd36305b Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sat, 4 May 2013 12:26:25 +0100 Subject: [PATCH] Check for valid wayland compositor and display before dispatching. Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4