diff options
author | Carlos Soriano <csoriano@gnome.org> | 2015-09-09 14:26:41 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-09-09 14:28:27 +0200 |
commit | 40a709cc11f60a47a0d956ea39af15e45d4339e3 (patch) | |
tree | 4936f5f96979641362d852ae0bde8d973c9e5886 | |
parent | 52e4774e9942043739c1594a72e0ffb96694632b (diff) | |
download | nautilus-40a709cc11f60a47a0d956ea39af15e45d4339e3.tar.gz |
window: plug memory leak
-rw-r--r-- | src/nautilus-window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index bd9657be3..da28b529b 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1159,6 +1159,9 @@ places_sidebar_populate_popup_cb (GtkPlacesSidebar *sidebar, GtkWidget *menu_item; GAction *action; + g_clear_object (&window->priv->selected_file); + g_clear_object (&window->priv->selected_volume); + if (selected_file) { trash = g_file_new_for_uri ("trash:///"); if (g_file_equal (trash, selected_file)) { @@ -2121,6 +2124,9 @@ nautilus_window_finalize (GObject *object) window->priv->notification_operation_timeout_id = 0; } + g_clear_object (&window->priv->selected_file); + g_clear_object (&window->priv->selected_volume); + g_signal_handlers_disconnect_by_func (nautilus_file_undo_manager_get (), G_CALLBACK (nautilus_window_on_undo_changed), window); |