diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-07-15 15:53:55 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-07-15 15:53:55 +0100 |
commit | 538559391ca340d014796c812f860d509c1ed4cd (patch) | |
tree | b11468ef3e0a0e953ec1af0b1b5a80bf1334f595 | |
parent | 075a4ed86c468b9f1bcb7d864ea678df25e7438b (diff) | |
download | clutter-538559391ca340d014796c812f860d509c1ed4cd.tar.gz |
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.
-rw-r--r-- | clutter/clutter-actor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index a2b44869f..b9f62b052 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -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; } |