actor: Plug a leak in an error path

If the meta for the animation property is not found, the name of the
property to look for is still from the token, and we need to free the
memory allocated for it.
This commit is contained in:
Emmanuele Bassi 2011-07-15 15:53:55 +01:00
parent 075a4ed86c
commit 538559391c

View File

@ -9490,8 +9490,6 @@ clutter_actor_find_property (ClutterAnimatable *animatable,
klass = G_OBJECT_GET_CLASS (meta);
pspec = g_object_class_find_property (klass, p_name);
g_free (p_name);
}
else
{
@ -9500,6 +9498,8 @@ clutter_actor_find_property (ClutterAnimatable *animatable,
pspec = g_object_class_find_property (klass, property_name);
}
g_free (p_name);
return pspec;
}