diff options
author | Dan Williams <dcbw@redhat.com> | 2011-05-04 17:13:03 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-05-04 17:13:03 -0500 |
commit | 2bcd4016b41a9d9e0db81bf491ea2636d597d862 (patch) | |
tree | a43125dc77b579b85b69350cf4f4e0918c73e6a9 /src/settings | |
parent | 30c63ddcb721dc6c8a8273da4808d898e379eb44 (diff) | |
download | NetworkManager-2bcd4016b41a9d9e0db81bf491ea2636d597d862.tar.gz |
settings: clean up signal handlers when destroying connections
Otherwise we might get crashes later.
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/nm-settings-connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c index 3eca8e042b..5667d1c41a 100644 --- a/src/settings/nm-settings-connection.c +++ b/src/settings/nm-settings-connection.c @@ -1424,6 +1424,8 @@ dispose (GObject *object) set_visible (self, FALSE); + if (priv->session_changed_id) + g_signal_handler_disconnect (priv->session_monitor, priv->session_changed_id); g_object_unref (priv->session_monitor); g_object_unref (priv->agent_mgr); g_object_unref (priv->dbus_mgr); |