[gtk+/nth-child: 19/22] styleproperty: Fix memleak in unpacking code



commit 3ad8f6b0a276bcc62a7f9db200ac09f788f457b2
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 a4fb8e8..a79a264 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1205,6 +1205,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]