diff --git a/compositor/util.c b/compositor/util.c index 4ce1774e..6d6c0c95 100644 --- a/compositor/util.c +++ b/compositor/util.c @@ -189,8 +189,10 @@ wlsc_zoom_frame(struct wlsc_animation *animation, wlsc_spring_update(&zoom->spring, msecs); - if (wlsc_spring_done(&zoom->spring)) + if (wlsc_spring_done(&zoom->spring)) { wlsc_zoom_destroy(zoom); + return; + } scale = zoom->start + (zoom->stop - zoom->start) * zoom->spring.current;