mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
Merge branch 'wip/paveloom/tcp-connection-leak' into 'main'
Make sure the `GTask` is freed on a graceful disconnect See merge request GNOME/glib!3607
This commit is contained in:
commit
2f1f97d58d
@ -206,6 +206,8 @@ async_close_finish (GTask *task,
|
||||
g_task_return_error (task, error);
|
||||
else
|
||||
g_task_return_boolean (task, TRUE);
|
||||
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
||||
|
||||
@ -231,7 +233,6 @@ close_read_ready (GSocket *socket,
|
||||
else
|
||||
{
|
||||
async_close_finish (task, error);
|
||||
g_object_unref (task);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user