Re: [E-devel] [EGIT] [core/enlightenment] master 01/01: e - wl - fix re-adding wl listener twice to the same list

Christopher Michael <[email protected]>
Newsgroups gmane.comp.window-managers.enlightenment.devel
Message-ID <[email protected]>
Thank You Raster !!!!

Nobody listened back in the day .....


dh


On 5/10/21 11:33 PM, Carsten Haitzler wrote:
> raster pushed a commit to branch master.
>
> http://git.enlightenment.org/core/enlightenment.git/commit/?id=bc8a4f9a894f6a626a859b1e621822bff556a884
>
> commit bc8a4f9a894f6a626a859b1e621822bff556a884
> Author: Carsten Haitzler (Rasterman) <[email protected]>
> 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;
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.