[glib] qdata: Fix leak in qdata unit tests



commit b49344c1d389035066aed0c4392c18990afe68a4
Author: Stef Walter <stefw gnome org>
Date:   Thu Oct 31 23:06:27 2013 +0100

    qdata: Fix leak in qdata unit tests
    
    https://bugzilla.gnome.org/show_bug.cgi?id=627423

 gobject/tests/qdata.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/tests/qdata.c b/gobject/tests/qdata.c
index 317f8c5..abafc4d 100644
--- a/gobject/tests/qdata.c
+++ b/gobject/tests/qdata.c
@@ -104,6 +104,8 @@ test_qdata_dup (void)
   b = g_object_replace_qdata (object, quark, s, "s2", NULL, NULL);
   g_assert (b);
 
+  g_free (s);
+
   g_object_unref (object);
 }
 


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