From 4168b216a3c062cc9d038e6ab71db4452ec116e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 3 Mar 2010 15:46:19 +0000 Subject: [PATCH] animator: fix a crash in clutter_animator_compute_value Fix a crasher when there is only one key in the animator. --- clutter/clutter-animator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-animator.c b/clutter/clutter-animator.c index 864157f9d..a69841568 100644 --- a/clutter/clutter-animator.c +++ b/clutter/clutter-animator.c @@ -994,6 +994,9 @@ clutter_animator_compute_value (ClutterAnimator *animator, } + if (!next) + return FALSE; + /* We're at, or past the end, use the last value */ g_value_copy (&next->value, value);