tests: do not explicitly free f->base.conf_file
This is done inside wp_base_test_fixture_teardown() now, as it should.
This commit is contained in:
@@ -26,7 +26,6 @@ test_conf_teardown (TestConfFixture *self, gconstpointer user_data)
|
|||||||
{
|
{
|
||||||
g_clear_object (&self->conf);
|
g_clear_object (&self->conf);
|
||||||
wp_base_test_fixture_teardown (&self->base);
|
wp_base_test_fixture_teardown (&self->base);
|
||||||
g_clear_pointer (&self->base.conf_file, g_free);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -34,7 +34,6 @@ test_conf_file_setup (TestSettingsFixture *self, gconstpointer user_data)
|
|||||||
static void
|
static void
|
||||||
test_conf_file_teardown (TestSettingsFixture *self, gconstpointer user_data)
|
test_conf_file_teardown (TestSettingsFixture *self, gconstpointer user_data)
|
||||||
{
|
{
|
||||||
g_free (self->base.conf_file);
|
|
||||||
wp_base_test_fixture_teardown (&self->base);
|
wp_base_test_fixture_teardown (&self->base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user