mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
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:
commit
c29bc822c2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user