places-sidebar: disconnect the gsettings handler callback in _dispose()

The GSettings object is a global singleton, so it will always survive the
sidebar; we should make sure to disconnect all the settings signal when
destroying the sidebar.

https://bugzilla.gnome.org/show_bug.cgi?id=646664
This commit is contained in:
Cosimo Cecchi 2011-04-03 19:57:37 -04:00
parent d4cce11671
commit 68b57af6e4

View file

@ -3253,6 +3253,10 @@ nautilus_places_sidebar_dispose (GObject *object)
desktop_setting_changed_callback,
sidebar);
g_signal_handlers_disconnect_by_func (nautilus_preferences,
bookmarks_popup_menu_detach_cb,
sidebar);
g_signal_handlers_disconnect_by_func (gnome_background_preferences,
desktop_setting_changed_callback,
sidebar);