[gtk+/nth-child: 19/22] styleproperty: Fix memleak in unpacking code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/nth-child: 19/22] styleproperty: Fix memleak in unpacking code
- Date: Thu, 26 May 2011 03:32:10 +0000 (UTC)
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 (¶meter[3].value, G_TYPE_INT);
g_value_set_int (¶meter[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]