aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 3932d47e10..59b47f70c4 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-28 Dan Winship <danw@helixcode.com>
+
+ * providers/pop3/camel-pop3-folder.c (pop3_finalize): Don't try to
+ free things if they haven't been set yet.
+
2000-11-28 Jeffrey Stedfast <fejj@helixcode.com>
* providers/smtp/camel-smtp-transport.c (smtp_connect): Clear the
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 5cc0609e01..91760c80c5 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -108,8 +108,10 @@ pop3_finalize (CamelObject *object)
{
CamelPop3Folder *pop3_folder = CAMEL_POP3_FOLDER (object);
- camel_folder_free_deep (NULL, pop3_folder->uids);
- g_free (pop3_folder->flags);
+ if (pop3_folder->uids)
+ camel_folder_free_deep (NULL, pop3_folder->uids);
+ if (pop3_folder->flags)
+ g_free (pop3_folder->flags);
}
CamelFolder *