From 1dec637ab57fbf9f928ed71dc1c4b9e1ad30f5a6 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Tue, 10 Dec 2019 19:35:12 -0500 Subject: [PATCH] tests: clear core weak reference when finalizing endpoint-link-fake --- tests/modules/config-policy/endpoint-link-fake.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/modules/config-policy/endpoint-link-fake.c b/tests/modules/config-policy/endpoint-link-fake.c index 499db0ca..e9c76e30 100644 --- a/tests/modules/config-policy/endpoint-link-fake.c +++ b/tests/modules/config-policy/endpoint-link-fake.c @@ -84,6 +84,7 @@ wp_endpoint_link_fake_finalize (GObject * object) { WpEndpointLinkFake *self = WP_ENDPOINT_LINK_FAKE (object); g_clear_object (&self->init_task); + g_weak_ref_clear (&self->core); G_OBJECT_CLASS (wp_endpoint_link_fake_parent_class)->finalize (object); }