Merge branch 'socket-client-connect-gerror-leak' into 'master'

GSocketClient - Free last error if a connection attempt fails and on retry the...

See merge request GNOME/glib!718
This commit is contained in:
Sebastian Dröge 2019-03-15 11:46:57 +00:00
commit c29bc822c2

View File

@ -1006,6 +1006,7 @@ g_socket_client_connect (GSocketClient *client,
if (g_cancellable_is_cancelled (cancellable))
{
g_clear_error (error);
g_clear_error (&last_error);
g_cancellable_set_error_if_cancelled (cancellable, error);
break;
}