[gtk+] styleproperty: Fix memleak in unpacking code



commit 7b94a6ff2f2b1c6865f5e300f9c7d0a361da661a
Author: Benjamin Otte <otte redhat com>
Date:   Thu May 26 03:14:00 2011 +0200

    styleproperty: Fix memleak in unpacking code

 gtk/gtkstyleproperty.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index abed616..7ad2399 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1186,6 +1186,8 @@ unpack_border (const GValue *value,
   g_value_init (&parameter[3].value, G_TYPE_INT);
   g_value_set_int (&parameter[3].value, border->right);
 
+  gtk_border_free (border);
+
   *n_params = 4;
   return parameter;
 }



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