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.
This commit is contained in:
Derek Foreman 2016-04-01 13:03:54 -05:00 committed by Mike Blumenkrantz
parent 57ce6419e5
commit 8f0f9ce4f7
1 changed files with 5 additions and 0 deletions

View File

@ -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: