Make tests work with slice allocator

This commit is contained in:
Matthias Clasen 2005-12-01 18:06:17 +00:00
parent 470abcc950
commit a2f85d23ef
4 changed files with 13 additions and 6 deletions

View 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.

View 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.

View 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.

View 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)