Commit c29bc822 authored by Sebastian Dröge's avatar Sebastian Dröge

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 !718
parents c3cfbd26 499c2014
Pipeline #68385 passed with stages
in 29 minutes and 26 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment