From 6446d0fbd3f16c43c576a4cc152dda060774e936 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 3 Mar 2003 22:12:21 +0000 Subject: (impl_finalize): Protect against priv->possible_types being NULL. svn path=/trunk/; revision=20128 --- shell/evolution-folder-selector-button.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'shell/evolution-folder-selector-button.c') 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); -- cgit