mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 09:30:13 +01:00
Cleanup finalize and free lists
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2171 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
1afbd66971
commit
485d49f05c
1 changed files with 7 additions and 0 deletions
|
|
@ -216,12 +216,19 @@ nm_dbus_manager_finalize (GObject *object)
|
|||
|
||||
/* Must be done before the dbus connection is disposed */
|
||||
g_slist_foreach (self->priv->signal_handlers, free_signal_handler_helper, self);
|
||||
g_slist_free (self->priv->signal_handlers);
|
||||
self->priv->signal_handlers = NULL;
|
||||
|
||||
g_slist_foreach (self->priv->matches, signal_match_dispose_helper, self);
|
||||
g_slist_free (self->priv->matches);
|
||||
self->priv->matches = NULL;
|
||||
|
||||
nm_dbus_manager_cleanup (self);
|
||||
g_main_context_unref (self->priv->main_ctx);
|
||||
|
||||
g_slist_foreach (self->priv->msg_handlers, cleanup_handler_data, NULL);
|
||||
g_slist_free (self->priv->msg_handlers);
|
||||
self->priv->msg_handlers = NULL;
|
||||
|
||||
G_OBJECT_CLASS (nm_dbus_manager_parent_class)->finalize (object);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue