manager: disconnect platform_link_cb() from NMManager in dispose()

This commit is contained in:
Thomas Haller
2017-09-29 15:19:19 +02:00
parent cfe3d8bdd0
commit 3b3c5843cd

View File

@@ -6392,6 +6392,10 @@ dispose (GObject *object)
NMManager *self = NM_MANAGER (object);
NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
g_signal_handlers_disconnect_by_func (priv->platform,
G_CALLBACK (platform_link_cb),
self);
g_slist_free_full (priv->auth_chains, (GDestroyNotify) nm_auth_chain_unref);
priv->auth_chains = NULL;