animator: Only free the animator key when we've finished with it
Fixes: http://bugzilla.clutter-project.org/show_bug.cgi?id=2530
This commit is contained in:
parent
5593792a40
commit
dc6f6d6445
@ -1426,7 +1426,6 @@ again:
|
|||||||
ClutterAnimatorKey *prev_key = NULL;
|
ClutterAnimatorKey *prev_key = NULL;
|
||||||
key->is_inert = is_inert;
|
key->is_inert = is_inert;
|
||||||
|
|
||||||
clutter_animator_key_free (key);
|
|
||||||
|
|
||||||
/* FIXME: non performant since we reiterate the list many times */
|
/* FIXME: non performant since we reiterate the list many times */
|
||||||
|
|
||||||
@ -1446,6 +1445,8 @@ again:
|
|||||||
next_key->ease_in = key->ease_in;
|
next_key->ease_in = key->ease_in;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clutter_animator_key_free (key);
|
||||||
priv->score = g_list_remove (priv->score, key);
|
priv->score = g_list_remove (priv->score, key);
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user