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.
This commit is contained in:
parent
cd3a071519
commit
c373331f94
|
@ -1304,6 +1304,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
|
||||
|
|
Loading…
Reference in New Issue