mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
gsocketclient: Add a missing connection_attempt_remove() call
The connection attempt should always be removed before being unreffed. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
f5f418b057
commit
da48656ee7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user