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:
Derek Foreman 2016-02-17 13:38:33 -06:00
parent cd3a071519
commit c373331f94
1 changed files with 5 additions and 0 deletions

View File

@ -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