mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
075a4ed86c
commit
538559391c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user