[glib/wip/gcleanup: 78/78] defaultiface: Fix leak in test
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 78/78] defaultiface: Fix leak in test
- Date: Tue, 12 Nov 2013 05:33:40 +0000 (UTC)
commit f5e50b74aacb239addf1b6fe432ff0e65c68cf4f
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]