Make tests work with slice allocator
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 1 Dec 2005 18:06:17 +0000 (18:06 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 1 Dec 2005 18:06:17 +0000 (18:06 +0000)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
tests/gobject/ifacecheck.c

index 0d4562b..2cd4f35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2005-12-01 Matthias Clasen <mclasen@redhat.com>
+2005-12-01  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
+       double-free base interface members.
 
        * tests/Makefile.am: Remove duplicate variable.
 
index 0d4562b..2cd4f35 100644 (file)
@@ -1,4 +1,7 @@
-2005-12-01 Matthias Clasen <mclasen@redhat.com>
+2005-12-01  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
+       double-free base interface members.
 
        * tests/Makefile.am: Remove duplicate variable.
 
index 0d4562b..2cd4f35 100644 (file)
@@ -1,4 +1,7 @@
-2005-12-01 Matthias Clasen <mclasen@redhat.com>
+2005-12-01  Matthias Clasen  <mclasen@redhat.com>
+
+       * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
+       double-free base interface members.
 
        * tests/Makefile.am: Remove duplicate variable.
 
index 4572deb..f57189a 100644 (file)
@@ -47,9 +47,7 @@ struct _TestIfaceClass
 static void
 test_iface_base_init (TestIfaceClass *iface)
 {
-  if (iface->history)
-    g_string_free (iface->history, TRUE);
-  iface->history = g_string_new (NULL);
+  iface->history = g_string_new (iface->history ? iface->history->str : NULL);
 }
 
 static DEFINE_IFACE(TestIface, test_iface, test_iface_base_init, NULL)