[gtk+] css: Fix memleak



commit 4653c7017f6bedeaa0ae7a58a2a9cf4fb7c4a405
Author: Benjamin Otte <otte redhat com>
Date:   Sun Jan 15 00:11:42 2012 +0100

    css: Fix memleak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667910

 gtk/gtkcssshorthandproperty.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c
index c47b530..303376e 100644
--- a/gtk/gtkcssshorthandproperty.c
+++ b/gtk/gtkcssshorthandproperty.c
@@ -144,7 +144,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property,
     }
 
   g_value_init (value, G_TYPE_VALUE_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]