summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-07-09 22:22:48 +0200
committerThomas Haller <thaller@redhat.com>2015-02-03 13:01:52 +0100
commit3dce101f6b28887dc6e8851525d6a52c2d8e341a (patch)
tree6fe20f6966a4a8a420eb2cc974b943f8d07fb7cf
parent6cb5db60de292fc4493b9f799819641bb56942c6 (diff)
downloadNetworkManager-3dce101f6b28887dc6e8851525d6a52c2d8e341a.tar.gz
connectivity: make NMConnectivity:dispose() reentrant
-rw-r--r--src/nm-connectivity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-connectivity.c b/src/nm-connectivity.c
index 7f99f92f93..e049de42d8 100644
--- a/src/nm-connectivity.c
+++ b/src/nm-connectivity.c
@@ -393,8 +393,8 @@ dispose (GObject *object)
NMConnectivity *self = NM_CONNECTIVITY (object);
NMConnectivityPrivate *priv = NM_CONNECTIVITY_GET_PRIVATE (self);
- g_free (priv->uri);
- g_free (priv->response);
+ g_clear_pointer (&priv->uri, g_free);
+ g_clear_pointer (&priv->response, g_free);
#if WITH_CONCHECK
if (priv->soup_session) {