[gtk+] styleproperty: Fix leak



commit 7b2f8949dd9108d32e03a763874e29f015f54790
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 6 20:41:31 2011 +0200

    styleproperty: Fix leak

 gtk/gtkstyleproperty.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index f3c1998..69b493e 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1649,7 +1649,7 @@ border_color_shorthand_value_parse (GtkCssParser *parser,
 
   g_value_unset (value);
   g_value_init (value, G_TYPE_PTR_ARRAY);
-  g_value_set_boxed (value, array);
+  g_value_take_boxed (value, array);
 
   return TRUE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]