raster pushed a commit to branch master.

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

commit bc8a4f9a894f6a626a859b1e621822bff556a884
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue May 11 03:32:54 2021 +0000

    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;

-- 


Reply via email to