diff options
author | Dan Winship <danw@src.gnome.org> | 2000-11-29 04:36:46 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-11-29 04:36:46 +0800 |
commit | 1db83e1fb92869bdac0eef802867aef989feb72c (patch) | |
tree | d39e7bac2a1ae18352a07da09a2489fa06c33edf | |
parent | dfc6c01cf945c1d3b12a16f151a693d778892b7f (diff) | |
download | gsoc2013-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
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 6 |
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 * |