[nautilus] files-view: disconnect leaked signals
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: disconnect leaked signals
- Date: Fri, 15 Jan 2016 17:04:57 +0000 (UTC)
commit 4d94a88848d1daca37b92767074e9afe8df7cf7d
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Jan 13 18:53:07 2016 +0100
files-view: disconnect leaked signals
Even if we disconnect them on the subclasses, as long as we connect them
here we should disconnect them as well.
https://bugzilla.gnome.org/show_bug.cgi?id=759717
src/nautilus-files-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 885858a..1b9243b 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -2907,6 +2907,10 @@ nautilus_files_view_destroy (GtkWidget *object)
nautilus_files_view_display_selection_info, view);
g_signal_handlers_disconnect_by_func (gnome_lockdown_preferences,
schedule_update_context_menus, view);
+ g_signal_handlers_disconnect_by_func (nautilus_trash_monitor_get (),
+ nautilus_files_view_trash_state_changed_callback, view);
+ g_signal_handlers_disconnect_by_func (nautilus_clipboard_monitor_get (),
+ clipboard_changed_callback, view);
nautilus_file_unref (view->details->directory_as_file);
view->details->directory_as_file = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]