From 1db83e1fb92869bdac0eef802867aef989feb72c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 28 Nov 2000 20:36:46 +0000 Subject: Don't try to free things if they haven't been set yet. * providers/pop3/camel-pop3-folder.c (pop3_finalize): Don't try to free things if they haven't been set yet. svn path=/trunk/; revision=6698 --- camel/ChangeLog | 5 +++++ camel/providers/pop3/camel-pop3-folder.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'camel') 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 + + * 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 * 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 * -- cgit