[clutter] Fixed leaking GValue content in clutter_animation_setup_valist().
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Fixed leaking GValue content in clutter_animation_setup_valist().
- Date: Fri, 9 Mar 2012 17:11:29 +0000 (UTC)
commit 2b22b60e6ea1ca22d7052d9bfb1fc8acfec4ca81
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Mar 10 02:06:10 2012 +0900
Fixed leaking GValue content in clutter_animation_setup_valist().
Normally this leak goes unnoticed because basic fundamental types
are typically used with clutter_actor_animate(), the leak shows up
if boxed or object types are passed (such as ClutterVertex in the
case I stumbled upon).
clutter/clutter-animation.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c
index f1c4a0f..97457ec 100644
--- a/clutter/clutter-animation.c
+++ b/clutter/clutter-animation.c
@@ -2028,6 +2028,9 @@ clutter_animation_setup_valist (ClutterAnimation *animation,
&final,
pspec,
is_fixed);
+
+
+ g_value_unset (&final);
}
property_name = va_arg (var_args, gchar*);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]