mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
actor: Do not restore the easing state in finalize()
The easing state is part of the AnimationInfo structure, which is stored inside the GObject's datalist. Each instance frees the data stored there during finalization, so there is no point for us to restore an easing state (which may or may not be the last one) just to have everything cleared out once we chain up to GObject's own finalize() implementation.
This commit is contained in:
parent
d930bdf3fc
commit
eb51f6cf10
@ -5897,8 +5897,6 @@ clutter_actor_finalize (GObject *object)
|
||||
priv->id,
|
||||
g_type_name (G_OBJECT_TYPE (object)));
|
||||
|
||||
clutter_actor_restore_easing_state (CLUTTER_ACTOR (object));
|
||||
|
||||
_clutter_context_release_id (priv->id);
|
||||
|
||||
g_free (priv->name);
|
||||
@ -8456,6 +8454,9 @@ clutter_actor_init (ClutterActor *self)
|
||||
*/
|
||||
priv->needs_compute_expand = FALSE;
|
||||
|
||||
/* we start with an easing state with duration forcibly set
|
||||
* to 0, for backward compatibility.
|
||||
*/
|
||||
clutter_actor_save_easing_state (self);
|
||||
clutter_actor_set_easing_duration (self, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user