From e9cddebb2ed8e6d0289f883d6a05b2951198bcb0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 28 Jan 2004 07:03:27 +0000 Subject: ref folder from mail_component_get_folder. 2004-01-28 Not Zed * mail-send-recv.c (setup_send_data): ref folder from mail_component_get_folder. * mail-ops.c (fetch_mail_fetch): ref the folder we get from mail_component_get_folder since it doesn't ref it. svn path=/trunk/; revision=24485 --- mail/mail-ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 6cdfaad631..61dde23060 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -255,7 +255,8 @@ fetch_mail_fetch (struct _mail_msg *mm) if ((fm->destination = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_LOCAL_INBOX)) == NULL) goto fail; - + camel_object_ref(fm->destination); + /* FIXME: this should support keep_on_server too, which would then perform a spool access thingy, right? problem is matching raw messages to uid's etc. */ if (!strncmp (m->source_uri, "mbox:", 5)) { -- cgit v1.2.3