discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8a40d9c6ef31b5e4731ec3e3d582441ca3c5d11b

commit 8a40d9c6ef31b5e4731ec3e3d582441ca3c5d11b
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Apr 1 13:03:54 2016 -0500

    wayland: Fix xdg-popup crash
    
    We need to remove the destroy listener when we delete a pixmap or it
    leaves an invalid node on the signal list.
---
 src/bin/e_pixmap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index c429d81..2bd94a7 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -209,6 +209,11 @@ _e_pixmap_free(E_Pixmap *cp)
       case E_PIXMAP_TYPE_WL:
 #ifdef HAVE_WAYLAND
         _e_pixmap_wayland_image_clear(cp);
+        if (cp->buffer_destroy_listener.notify)
+          {
+             wl_list_remove(&cp->buffer_destroy_listener.link);
+             cp->buffer_destroy_listener.notify = NULL;
+          }
 #endif
         break;
       default:

-- 


Reply via email to