diff options
author | Thomas Haller <thaller@redhat.com> | 2017-03-13 11:51:33 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-03-13 12:00:23 +0100 |
commit | ec2681d4dbe4f28f5ed08d4c1eef11685e76ebc1 (patch) | |
tree | 4a16300a7b5dcb37411eedd16ee948b850eb3634 /src/nm-auth-utils.c | |
parent | e1ea22ca8195bec243c7a65f36be65cbf2061297 (diff) | |
download | NetworkManager-ec2681d4dbe4f28f5ed08d4c1eef11685e76ebc1.tar.gz |
all: use nm_clear_g_cancellable()
Diffstat (limited to 'src/nm-auth-utils.c')
-rw-r--r-- | src/nm-auth-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nm-auth-utils.c b/src/nm-auth-utils.c index 930f6d0ff9..f9c958e91f 100644 --- a/src/nm-auth-utils.c +++ b/src/nm-auth-utils.c @@ -301,12 +301,10 @@ auth_call_cancel (gpointer user_data) { AuthCall *call = user_data; - if (call->cancellable) { + if (nm_clear_g_cancellable (&call->cancellable)) { /* we don't free call immediately. Instead we cancel the async operation * and set cancellable to NULL. pk_call_cb() will check for this and * do the final cleanup. */ - g_cancellable_cancel (call->cancellable); - g_clear_object (&call->cancellable); } else { g_source_remove (call->call_idle_id); auth_call_free (call); |