Lines Matching refs:animation
4 Subject: [PATCH 32/93] libweston: animation: Fix double-destroy
8 libweston/animation.c | 9 ++++++++-
11 diff --git a/libweston/animation.c b/libweston/animation.c
13 --- a/libweston/animation.c
14 +++ b/libweston/animation.c
25 weston_view_animation_destroy(struct weston_view_animation *animation)
27 + if (animation->idle_destroy_source)
28 + wl_event_source_remove(animation->idle_destroy_source);
30 wl_list_remove(&animation->animation.link);
31 wl_list_remove(&animation->listener.link);
32 wl_list_remove(&animation->transform.link);
36 &animation->animation.link);
37 + animation->idle_destroy_source = NULL;
39 wl_list_init(&animation->animation.link);
41 - wl_event_loop_add_idle(loop, idle_animation_destroy, animation);
42 + animation->idle_destroy_source =
44 + animation);
47 return animation;