qdata: Fix leak in qdata unit tests
authorStef Walter <stefw@gnome.org>
Thu, 31 Oct 2013 22:06:27 +0000 (23:06 +0100)
committerStef Walter <stefw@gnome.org>
Wed, 6 Nov 2013 09:14:30 +0000 (10:14 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=627423

gobject/tests/qdata.c

index 317f8c5..abafc4d 100644 (file)
@@ -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);
 }