discomfitor pushed a commit to branch enlightenment-0.20.

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

commit f8be94f19eb6b675172e747cafff995dc67a18c5
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Feb 17 13:38:33 2016 -0600

    Remove wayland frame callbacks from subsurface cache on destruction
    
    There are 3 places a frame callback could be hiding.  frames list,
    pending.frames list, or subsurface cached.frames list.  We weren't
    clearing it from the subsurface cache on destruction.
---
 src/bin/e_comp_wl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 11c8472..802d25d 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1305,6 +1305,11 @@ _e_comp_wl_frame_cb_destroy(struct wl_resource *resource)
 
    ec->comp_data->pending.frames =
      eina_list_remove(ec->comp_data->pending.frames, resource);
+
+   if (!ec->comp_data->sub.data) return;
+
+   ec->comp_data->sub.data->cached.frames =
+     eina_list_remove(ec->comp_data->sub.data->cached.frames, resource);
 }
 
 static void

-- 


Reply via email to