From da48656ee7b8844cd3fa8ebbb931fe1451d17d1e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Nov 2023 16:19:06 +0000 Subject: [PATCH] gsocketclient: Add a missing connection_attempt_remove() call The connection attempt should always be removed before being unreffed. Signed-off-by: Philip Withnall --- gio/gsocketclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index e95df575a..1127e4599 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -1932,6 +1932,7 @@ g_socket_client_connected_callback (GObject *source, if (task_completed_or_cancelled (data) || g_cancellable_is_cancelled (attempt->cancellable)) { g_object_unref (data->task); + connection_attempt_remove (attempt); connection_attempt_unref (attempt); return; }