aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-folder-selector-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/evolution-folder-selector-button.c')
-rw-r--r--shell/evolution-folder-selector-button.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/evolution-folder-selector-button.c b/shell/evolution-folder-selector-button.c
index 730f1cbaba..70d221d6f0 100644
--- a/shell/evolution-folder-selector-button.c
+++ b/shell/evolution-folder-selector-button.c
@@ -224,9 +224,12 @@ impl_finalize (GObject *object)
priv = folder_selector_button->priv;
g_free (priv->title);
- for (i = 0; priv->possible_types[i]; i++)
- g_free (priv->possible_types[i]);
- g_free (priv->possible_types);
+
+ if (priv->possible_types != NULL) {
+ for (i = 0; priv->possible_types[i]; i++)
+ g_free (priv->possible_types[i]);
+ g_free (priv->possible_types);
+ }
if (priv->selected_folder)
CORBA_free (priv->selected_folder);