aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-11-29 04:36:46 +0800
committerDan Winship <danw@src.gnome.org>2000-11-29 04:36:46 +0800
commit1db83e1fb92869bdac0eef802867aef989feb72c (patch)
treed39e7bac2a1ae18352a07da09a2489fa06c33edf /camel/providers
parentdfc6c01cf945c1d3b12a16f151a693d778892b7f (diff)
downloadgsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar.gz
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar.bz2
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar.lz
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar.xz
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.tar.zst
gsoc2013-evolution-1db83e1fb92869bdac0eef802867aef989feb72c.zip
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
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 *