From bc8a4f9a894f6a626a859b1e621822bff556a884 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 11 May 2021 03:32:54 +0000 Subject: [PATCH] e - wl - fix re-adding wl listener twice to the same list this causes calling the same cb multiple times and this causes mayhem. fix. --- src/bin/e_pixmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 7a6d1cbe0..505536442 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -1011,6 +1011,8 @@ e_pixmap_image_refresh(E_Pixmap *cp) cp->held_buffer_destroy_listener.notify = _e_pixmap_cb_held_buffer_destroy; + if (cp->held_buffer_destroy_listener.link.next) + wl_list_remove(&cp->held_buffer_destroy_listener.link); wl_signal_add(&cp->held_buffer->destroy_signal, &cp->held_buffer_destroy_listener); return EINA_TRUE;