aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c6
1 files changed, 4 insertions, 2 deletions
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 *