[glib] Revert "defaultiface: Fix leak in test"
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Revert "defaultiface: Fix leak in test"
- Date: Mon, 11 Nov 2013 16:07:03 +0000 (UTC)
commit aa7ec15091a29c37aa32c117dff94b6b72498b39
Author: Stef Walter <stefw gnome org>
Date: Mon Nov 11 15:27:24 2013 +0100
Revert "defaultiface: Fix leak in test"
This reverts commit fd7b2faa64febab407ffde2506c995544583a9d5.
This required another patch to be commited first. Will put this
back in bugzilla.
tests/gobject/defaultiface.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/tests/gobject/defaultiface.c b/tests/gobject/defaultiface.c
index 12944b0..c44c18a 100644
--- a/tests/gobject/defaultiface.c
+++ b/tests/gobject/defaultiface.c
@@ -141,9 +141,8 @@ static void
test_dynamic_iface (void)
{
TestDynamicIfaceClass *dynamic_iface;
- GTypeModule *module;
- module = test_module_new (module_register);
+ test_module_new (module_register);
/* Not loaded until we call ref for the first time */
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
@@ -180,8 +179,6 @@ test_dynamic_iface (void)
#if 0
g_assert (!dynamic_iface_init);
#endif
-
- g_object_unref (module);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]