summaryrefslogtreecommitdiff
path: root/src/devices/wwan/nm-device-modem.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-03-23 11:00:43 +0100
committerThomas Haller <thaller@redhat.com>2020-03-23 11:05:34 +0100
commit073994ca4284a5e99314195981aa254f06c3bf69 (patch)
tree7d935de27616ff67fbedb141e2ee3152282dbfe2 /src/devices/wwan/nm-device-modem.c
parentc50b4621d4415f9156e969a6a05fb37e1bb02e18 (diff)
downloadNetworkManager-073994ca4284a5e99314195981aa254f06c3bf69.tar.gz
all: use nm_clear_g_free() instead of g_clear_pointer()
I think it's preferable to use nm_clear_g_free() instead of g_clear_pointer(, g_free). The reasons are not very strong, but I think it is overall preferable to have a shorthand for this frequently used functionality. sed 's/\<g_clear_pointer *(\([^;]*\), *\(g_free\) *)/nm_clear_g_free (\1)/g' $(git grep -l g_clear_pointer) -i
Diffstat (limited to 'src/devices/wwan/nm-device-modem.c')
-rw-r--r--src/devices/wwan/nm-device-modem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/wwan/nm-device-modem.c b/src/devices/wwan/nm-device-modem.c
index 53e4636523..8e5b70bded 100644
--- a/src/devices/wwan/nm-device-modem.c
+++ b/src/devices/wwan/nm-device-modem.c
@@ -842,9 +842,9 @@ dispose (GObject *object)
nm_clear_pointer (&priv->modem, nm_modem_unclaim);
}
- g_clear_pointer (&priv->device_id, g_free);
- g_clear_pointer (&priv->operator_code, g_free);
- g_clear_pointer (&priv->apn, g_free);
+ nm_clear_g_free (&priv->device_id);
+ nm_clear_g_free (&priv->operator_code);
+ nm_clear_g_free (&priv->apn);
G_OBJECT_CLASS (nm_device_modem_parent_class)->dispose (object);
}