diff options
author | Peter Williams <peterw@ximian.com> | 2001-08-21 06:12:27 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-08-21 06:12:27 +0800 |
commit | 036f4feb49dcd094b385d4b8a37fbc4b107924ec (patch) | |
tree | 20f425a8263efdc8aafa05cdfb79ada7f1c60513 | |
parent | a1a0a6bc4c8b444afe9ba4ee3feaec28192252ae (diff) | |
download | gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar.gz gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar.bz2 gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar.lz gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar.xz gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.tar.zst gsoc2013-evolution-036f4feb49dcd094b385d4b8a37fbc4b107924ec.zip |
Fix double-unref of the store.
2001-08-20 Peter Williams <peterw@ximian.com>
* mail-ops.c (remove_folder_get): Fix double-unref of the store.
svn path=/trunk/; revision=12326
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/mail-ops.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 6e3c6e4f2a..e240a923ce 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2001-08-20 Peter Williams <peterw@ximian.com> + + * mail-ops.c (remove_folder_get): Fix double-unref of the store. + 2001-08-20 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (create_folder): Modify the url and set the diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 96c3683f2a..dc9efdd270 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1480,7 +1480,7 @@ remove_folder_get (struct _mail_msg *mm) store = camel_folder_get_parent_store (folder); if (!store) - goto done; + return; /* Delete every message in this folder, then expunge it */ uids = camel_folder_get_uids (folder); @@ -1496,10 +1496,6 @@ remove_folder_get (struct _mail_msg *mm) /* Remove this folder from the folder cache */ mail_folder_cache_remove_folder (m->uri); - - done: - if (store) - camel_object_unref (CAMEL_OBJECT (store)); } static void |