aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-09 09:48:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-09 09:48:04 +0800
commitcd101b3ffcbe06d7b40bc19adbc66b2ad843a1c9 (patch)
tree4e58365acab06da8c310908bcca7931ad94b66a9 /mail/mail-ops.c
parenta0eb13592633e0a5f06dc522dd8df3d9efdd70a0 (diff)
downloadgsoc2013-evolution-cd101b3ffcbe06d7b40bc19adbc66b2ad843a1c9.tar.gz
gsoc2013-evolution-cd101b3ffcbe06d7b40bc19adbc66b2ad843a1c9.tar.zst
gsoc2013-evolution-cd101b3ffcbe06d7b40bc19adbc66b2ad843a1c9.zip
only free driver, if set. (fetch_mail_fetched): Unref the driver here, so
2001-02-09 Not Zed <NotZed@Ximian.com> * mail-ops.c (filter_folder_free): only free driver, if set. (fetch_mail_fetched): Unref the driver here, so it can cleanup before we call the 'done' callback. * component-factory.c (owner_set_cb): Add setup for mail autoreceive stuff. * mail-send-recv.c (free_info_data): Free the send info's from teh active hash, not the running list. (receive_done): As we finish downloads, remove them and clean them up, and also close the window. (mail_autoreceive_setup): New function to setup & maintain automatic download stuff. svn path=/trunk/; revision=8134
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 3b81d62d6a..231b22ad95 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -209,7 +209,8 @@ filter_folder_free(struct _mail_msg *mm)
camel_operation_unref(m->cancel);
if (m->destination)
camel_object_unref((CamelObject *)m->destination);
- camel_object_unref((CamelObject *)m->driver);
+ if (m->driver)
+ camel_object_unref((CamelObject *)m->driver);
}
static struct _mail_msg_op filter_folder_op = {
@@ -333,6 +334,11 @@ fetch_mail_fetched(struct _mail_msg *mm)
{
struct _fetch_mail_msg *m = (struct _fetch_mail_msg *)mm;
+ /* we unref this here as it may have more work to do (syncing
+ folders and whatnot) before we are really done */
+ camel_object_unref((CamelObject *)m->fmsg.driver);
+ m->fmsg.driver = NULL;
+
if (m->done)
m->done(m->source_uri, m->data);
}
/td>- Update to 0.27miwi2010-05-162-7/+6 * Chase the ftp/curl shlib version bump.roam2010-04-031-1/+1 * - update to 1.4.1dinoex2010-03-281-1/+1 * - Update to 3.7.5miwi2010-02-081-3/+3 * - update to jpeg-8dinoex2010-02-051-0/+1 * - Update to 0.26miwi2010-01-223-8/+8 * - Chase claws-mail updatemiwi2009-11-281-3/+3 * Add/Update WWW records in pkg-descr filesskreuzer2009-08-051-2/+2 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * - Update to 0.25miwi2009-07-053-6/+8 * - Update to 0.24miwi2009-03-072-7/+6 * Bump the version of the curl shared library after the ftp/curl updateroam2009-01-231-0/+1 * - Update to 0.23miwi2009-01-123-6/+7 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * - Update to 0.20miwi2008-06-283-22/+28 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * - Update to 0.19miwi2008-04-202-6/+6 * - Get rid of USE_XLIBmiwi2008-03-221-2/+1 * - Bump PORTREVISION after claws-mail updatemiwi2008-02-281-3/+3 * - Update to 0.18miwi2008-02-132-7/+8 * - Bump PORTREVISION after claws-mail updatemiwi2007-10-021-1/+1 * - Bump PORTREVISION after claws-mail updatemiwi2007-09-181-2/+3 * - Update to 0.15miwi2007-09-072-6/+6 * - Update to 0.14miwi2007-07-072-6/+6 * - Update to 0.13miwi2007-06-042-7/+6 * - Update to 2.9.2miwi2007-05-291-1/+1 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * - Update to 2.9.1miwi2007-04-191-0/+1 * - Update to 0.12miwi2007-04-183-5/+5 * - Update CM to 2.8.1.netchild2007-03-121-1/+1 * - Update to 0.11miwi2007-03-013-4/+6 * - Update CM to 2.8.0.netchild2007-02-281-0/+1 * - Update CM to 2.7.2, themes to 20070116.netchild2007-01-271-1/+1 * - Update to 0.10miwi2007-01-252-5/+4 * Update CM to 2.7.1 and bump the revision of the plugins.netchild2007-01-161-0/+1 * update to 0.4.18itetcu2007-01-122-6/+5 * Update claws-mail to 2.7.0.netchild2007-01-101-0/+1 * sylpheed-claws was renamed upstream to claws-mail. Compleate repocopies ofitetcu2006-12-314-22/+13 * Update the ftp/curl port to 7.16.0.roam2006-12-131-2/+2 * - Update SC to 2.6.0.netchild2006-12-041-1/+2 * - Update to 0.7miwi2006-11-143-22/+6 * - Update to 0.6.1miwi2006-10-074-6/+27 * Update to 0.6itetcu2006-09-04