diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-01 18:06:17 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-01 18:06:17 +0000 |
commit | a2f85d23ef64b945fb61c446b5c5ef7bd7a5712e (patch) | |
tree | 187f719b3f6509cdbd62011798e8af55bbf78fa3 /tests/gobject | |
parent | 470abcc950264f1e5c53367e6f3ee4a19ed7e7dd (diff) | |
download | glib-a2f85d23ef64b945fb61c446b5c5ef7bd7a5712e.tar.gz |
Make tests work with slice allocator
Diffstat (limited to 'tests/gobject')
-rw-r--r-- | tests/gobject/ifacecheck.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/gobject/ifacecheck.c b/tests/gobject/ifacecheck.c index 4572deb84..f57189a65 100644 --- a/tests/gobject/ifacecheck.c +++ b/tests/gobject/ifacecheck.c @@ -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) |