summaryrefslogtreecommitdiff
path: root/src/animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.c')
-rw-r--r--src/animation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/animation.c b/src/animation.c
index cc7482dc..2c7943f6 100644
--- a/src/animation.c
+++ b/src/animation.c
@@ -471,8 +471,10 @@ weston_move_scale_run(struct weston_view *view, int dx, int dy,
animation = weston_view_animation_create(view, start, end, move_frame,
NULL, move_done, data, move);
- if (animation == NULL)
+ if (animation == NULL){
+ free(move);
return NULL;
+ }
weston_spring_init(&animation->spring, 400.0, 0.0, 1.0);
animation->spring.friction = 1150;