From 99d572044d3b94498607a05ad7aaccf372e8cbff Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Tue, 3 Dec 2019 10:42:37 +0900 Subject: Imported Upstream version 2.59.1 --- gio/gnetworkaddress.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gio/gnetworkaddress.c') diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c index 1651f89ed..60736874e 100644 --- a/gio/gnetworkaddress.c +++ b/gio/gnetworkaddress.c @@ -1120,12 +1120,17 @@ on_address_timeout (gpointer user_data) { GNetworkAddressAddressEnumerator *addr_enum = user_data; + /* Upon completion it may get unref'd by the owner */ + g_object_ref (addr_enum); + /* If ipv6 didn't come in yet, just complete the task */ if (addr_enum->queued_task != NULL) complete_queued_task (addr_enum, g_steal_pointer (&addr_enum->queued_task), g_steal_pointer (&addr_enum->last_error)); g_clear_pointer (&addr_enum->wait_source, g_source_unref); + g_object_unref (addr_enum); + return G_SOURCE_REMOVE; } -- cgit v1.2.3