GParamSpec *pspec,
ClutterAnimation *animation)
{
- ClutterAnimationPrivate *priv = animation->priv;
+ ClutterAnimationPrivate *priv;
GList *properties, *p;
gdouble alpha_value;
gboolean is_animatable = FALSE;
ClutterAnimatable *animatable = NULL;
+ /* make sure the animation survives the notification */
+ g_object_ref (animation);
+
+ priv = animation->priv;
+
alpha_value = clutter_alpha_get_alpha (CLUTTER_ALPHA (gobject));
if (CLUTTER_IS_ANIMATABLE (priv->object))
g_list_free (properties);
g_object_thaw_notify (priv->object);
+
+ g_object_unref (animation);
}
static ClutterAlpha *