connectivity: make NMConnectivity:dispose() reentrant

(cherry picked from commit 3dce101f6b)
This commit is contained in:
Thomas Haller 2014-07-09 22:22:48 +02:00 committed by Lubomir Rintel
parent 72d06eb9c8
commit 5929a4cbec

View file

@ -397,8 +397,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) {