summaryrefslogtreecommitdiff
path: root/src/settings/nm-settings-connection.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-01-04 09:46:22 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-01-06 21:25:55 +0100
commitfbd32869553dd631c486530a2e543c31041af5c2 (patch)
tree9e544a1e2099ecd151d5213eb81ed2e839b33462 /src/settings/nm-settings-connection.c
parent205ae642f9e45ee911a688356bcba1e5b7646601 (diff)
downloadNetworkManager-fbd32869553dd631c486530a2e543c31041af5c2.tar.gz
core,libnm: use nm_clear_g_source() where possible
Replacement was done with commands: spatch --sp-file nm_clear_g_source.cocci --in-place --smpl-spacing --dir src spatch --sp-file nm_clear_g_source.cocci --in-place --smpl-spacing --dir libnm where nm_clear_g_source.cocci contains: @@ expression e; @@ - if (e) { - g_source_remove (e); - e = 0; - } + nm_clear_g_source (&e);
Diffstat (limited to 'src/settings/nm-settings-connection.c')
-rw-r--r--src/settings/nm-settings-connection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c
index 20f4578da3..f7e5002cd3 100644
--- a/src/settings/nm-settings-connection.c
+++ b/src/settings/nm-settings-connection.c
@@ -2616,10 +2616,7 @@ dispose (GObject *object)
}
}
- if (priv->updated_idle_id) {
- g_source_remove (priv->updated_idle_id);
- priv->updated_idle_id = 0;
- }
+ nm_clear_g_source (&priv->updated_idle_id);
/* Disconnect handlers.
* changed_cb() has to be disconnected *before* nm_connection_clear_secrets(),