Commit 53855939 authored by Emmanuele Bassi's avatar Emmanuele Bassi

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.
parent 075a4ed8
......@@ -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);
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment