1
Description: Fix crash in nautilus_window_slot_get_current_uri()
2
Author: Cosimo Cecchi <cosimoc@gnome.org>
3
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=652320
4
Bug-Ubuntu: https://bugs.launchpad.net/bugs/795708
6
Index: nautilus-3.2.1/src/nautilus-window.c
7
===================================================================
8
--- nautilus-3.2.1.orig/src/nautilus-window.c 2011-12-16 12:37:17.352145410 +0100
9
+++ nautilus-3.2.1/src/nautilus-window.c 2011-12-16 12:37:26.288145095 +0100
12
DEBUG ("Destroying sidebar");
14
- gtk_widget_destroy (GTK_WIDGET (window->details->sidebar));
15
- window->details->sidebar = NULL;
16
+ if (window->details->sidebar != NULL) {
17
+ gtk_widget_destroy (GTK_WIDGET (window->details->sidebar));
18
+ window->details->sidebar = NULL;
25
DEBUG ("Destroying window");
27
- window->details->content_paned = NULL;
28
- window->details->split_view_hpane = NULL;
29
+ /* close the sidebar first */
30
+ nautilus_window_tear_down_sidebar (window);
32
/* close all panes safely */
33
panes_copy = g_list_copy (window->details->panes);