summaryrefslogtreecommitdiff
path: root/gio/gsocketclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gsocketclient.c')
-rw-r--r--gio/gsocketclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 1127e4599..d4231599a 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -1931,9 +1931,9 @@ 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);
+ g_object_unref (data->task);
return;
}