[gtk+] gtkstyleproperty: fix small memory leak
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] gtkstyleproperty: fix small memory leak
- Date: Sat, 23 Jul 2011 19:46:10 +0000 (UTC)
commit e8486fdf710ce49da0c0a70ff9bbe6645bd5e3ae
Author: Felix Riemann <friemann gnome org>
Date:   Sat Jul 23 15:50:05 2011 +0200
    gtkstyleproperty: fix small memory leak
    
    The released value is a string array and thus g_free is not sufficient.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655173
 gtk/gtkstyleproperty.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index c44d0e7..6ffb46c 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -2008,7 +2008,7 @@ pack_font_description (GValue             *value,
   pango_font_description_set_variant (description, variant);
   pango_font_description_set_weight (description, weight);
 
-  g_free (families);
+  g_strfreev (families);
 
   g_value_take_boxed (value, description);
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]