From 8f0f9ce4f7aa5e7325153560ff5c8ea440b885d3 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 1 Apr 2016 13:03:54 -0500 Subject: [PATCH] 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 c429d8108..2bd94a77f 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: