aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-folder-selector-button.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-03-04 06:12:21 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-03-04 06:12:21 +0800
commit6446d0fbd3f16c43c576a4cc152dda060774e936 (patch)
tree8a1bf25d984bec9697cd30d9b79b42800d73a360 /shell/evolution-folder-selector-button.c
parent8ddb619ad083a9a7d2ce9e2de72554607bbfbf01 (diff)
downloadgsoc2013-evolution-6446d0fbd3f16c43c576a4cc152dda060774e936.tar.gz
gsoc2013-evolution-6446d0fbd3f16c43c576a4cc152dda060774e936.tar.zst
gsoc2013-evolution-6446d0fbd3f16c43c576a4cc152dda060774e936.zip
(impl_finalize): Protect
against priv->possible_types being NULL. svn path=/trunk/; revision=20128
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);