aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-title-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-folder-title-bar.c')
-rw-r--r--shell/e-shell-folder-title-bar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/e-shell-folder-title-bar.c b/shell/e-shell-folder-title-bar.c
index a3509546b5..f3ff94a6fe 100644
--- a/shell/e-shell-folder-title-bar.c
+++ b/shell/e-shell-folder-title-bar.c
@@ -381,8 +381,10 @@ unrealize (GtkWidget *widget)
folder_title_bar = E_SHELL_FOLDER_TITLE_BAR (widget);
priv = folder_title_bar->priv;
- gtk_widget_destroy (priv->icon_widget);
- priv->icon_widget = NULL;
+ if (priv->icon_widget != NULL) {
+ gtk_widget_destroy (priv->icon_widget);
+ priv->icon_widget = NULL;
+ }
}
static void