From ec2681d4dbe4f28f5ed08d4c1eef11685e76ebc1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 13 Mar 2017 11:51:33 +0100 Subject: all: use nm_clear_g_cancellable() --- src/nm-auth-utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nm-auth-utils.c') 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); -- cgit v1.2.1