[animation] Fix variable use
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 28 Jul 2009 12:20:32 +0000 (13:20 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 28 Jul 2009 12:21:57 +0000 (13:21 +0100)
Instead of using the proper typed variables we were overwriting
the gpointer for the Interval's final value.

clutter/clutter-animation.c

index c26c77c..c88ddb9 100644 (file)
@@ -143,8 +143,8 @@ clutter_animation_real_completed (ClutterAnimation *self)
       ClutterInterval *interval = value;
       GValue *p_value;
 
-      value = clutter_interval_peek_final_value (interval);
-      g_object_set_property (priv->object, p_name, value);
+      p_value = clutter_interval_peek_final_value (interval);
+      g_object_set_property (priv->object, p_name, p_value);
     }
 
   /* at this point, if this animation was created by clutter_actor_animate()