stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=17e5b1c8f61a6dc0aa706338a0ee4c40f7fc6bcc

commit 17e5b1c8f61a6dc0aa706338a0ee4c40f7fc6bcc
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Thu Aug 27 16:19:14 2015 +0200

    ecore_wayland: only add listener if recovery interface was binded correctly
    
    In the case the bidn fails we could crash here by accessing it.
---
 src/lib/ecore_wayland/ecore_wl_window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index 036dc03..1c97b45 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -278,7 +278,8 @@ ecore_wl_window_surface_create(Ecore_Wl_Window *win)
 
    if (!win) return NULL;
    if (win->surface) return win->surface;
-   session_recovery_add_listener(_ecore_wl_disp->wl.session_recovery, 
&_ecore_session_recovery_listener, win);
+   if (_ecore_wl_disp->wl.session_recovery)
+     session_recovery_add_listener(_ecore_wl_disp->wl.session_recovery, 
&_ecore_session_recovery_listener, win);
    win->surface = wl_compositor_create_surface(_ecore_wl_compositor_get());
    if (!win->surface) return NULL;
    win->surface_id = wl_proxy_get_id((struct wl_proxy *)win->surface);

-- 


Reply via email to