[glib/wip/gcleanup: 71/71] defaultiface: Fix leak in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 71/71] defaultiface: Fix leak in test
- Date: Wed, 13 Nov 2013 11:40:13 +0000 (UTC)
commit a3f8620bdfa983916fae8039708bb7fca697f886
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 15:58:06 2013 +0100
defaultiface: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
tests/gobject/defaultiface.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/gobject/defaultiface.c b/tests/gobject/defaultiface.c
index 62a0d64..e00cb73 100644
--- a/tests/gobject/defaultiface.c
+++ b/tests/gobject/defaultiface.c
@@ -143,8 +143,9 @@ static void
test_dynamic_iface (void)
{
TestDynamicIfaceClass *dynamic_iface;
+ GTypeModule *module;
- test_module_new (module_register);
+ module = 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);
@@ -181,6 +182,8 @@ 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]