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-manager.c | |
parent | e1ea22ca8195bec243c7a65f36be65cbf2061297 (diff) | |
download | NetworkManager-ec2681d4dbe4f28f5ed08d4c1eef11685e76ebc1.tar.gz |
all: use nm_clear_g_cancellable()
Diffstat (limited to 'src/nm-auth-manager.c')
-rw-r--r-- | src/nm-auth-manager.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nm-auth-manager.c b/src/nm-auth-manager.c index 4359d8f187..b848e2e35c 100644 --- a/src/nm-auth-manager.c +++ b/src/nm-auth-manager.c @@ -595,10 +595,7 @@ dispose (GObject *object) /* since we take a reference for each queued call, we don't expect to have any queued calls in dispose() */ g_assert (!priv->queued_calls); - if (priv->new_proxy_cancellable) { - g_cancellable_cancel (priv->new_proxy_cancellable); - g_clear_object (&priv->new_proxy_cancellable); - } + nm_clear_g_cancellable (&priv->new_proxy_cancellable); if (priv->proxy) { g_signal_handlers_disconnect_by_data (priv->proxy, self); |