Check for valid wayland compositor and display before dispatching.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-05-04 12:26:25 +01:00
parent 046aecdf06
commit f80097f0cb
1 changed files with 1 additions and 1 deletions

View File

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