[gtk+/nth-child: 1/33] Revert "styleproperty: Fix memleak in unpacking code"



commit 7556ebc10bb47510b6069b381e86ccd41fd54bf9
Author: Benjamin Otte <otte redhat com>
Date:   Fri May 27 20:56:20 2011 +0200

    Revert "styleproperty: Fix memleak in unpacking code"
    
    This reverts commit 7b94a6ff2f2b1c6865f5e300f9c7d0a361da661a.
    
    The fix was incorrect, no leakage is happening. So this is causing a
    double free.

 gtk/gtkstyleproperty.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 7ad2399..abed616 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -1186,8 +1186,6 @@ 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]