mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
defaultiface: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
This commit is contained in:
parent
bac4179476
commit
fd7b2faa64
@ -141,8 +141,9 @@ static void
|
|||||||
test_dynamic_iface (void)
|
test_dynamic_iface (void)
|
||||||
{
|
{
|
||||||
TestDynamicIfaceClass *dynamic_iface;
|
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 */
|
/* Not loaded until we call ref for the first time */
|
||||||
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
|
dynamic_iface = g_type_default_interface_peek (TEST_TYPE_DYNAMIC_IFACE);
|
||||||
@ -179,6 +180,8 @@ test_dynamic_iface (void)
|
|||||||
#if 0
|
#if 0
|
||||||
g_assert (!dynamic_iface_init);
|
g_assert (!dynamic_iface_init);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
g_object_unref (module);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user