clients/secret-agent: cancel pending operations

We must actually cancel the GCancellable. Otherwise, the pending async
operations are not cancelled. _auth_dialog_write_done() doesn't care
about that, but _auth_dialog_read_done() does. It must not touch the
destroyed data, after the operation is cancelled.
This commit is contained in:
Thomas Haller 2019-01-22 11:40:59 +01:00
parent f2973fd72e
commit 16e0f38c3e

View file

@ -91,7 +91,7 @@ _request_data_free (gpointer data)
RequestData *request = data;
g_free (request->request_id);
g_object_unref (request->cancellable);
nm_clear_g_cancellable (&request->cancellable);
g_object_unref (request->self);
g_object_unref (request->connection);
g_strfreev (request->hints);