diff options
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-ops.c | 3 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index b421fc65fe..c47b33e464 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2004-01-28 Not Zed <NotZed@Ximian.com> + + * 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. + 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Removed unneeded debug printfs. 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)) { diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index fc6556f2e8..84217219fa 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -132,6 +132,7 @@ static struct _send_data *setup_send_data(void) data->lock = g_mutex_new(); data->folders = g_hash_table_new(g_str_hash, g_str_equal); data->inbox = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_LOCAL_INBOX); + camel_object_ref(data->inbox); data->active = g_hash_table_new(g_str_hash, g_str_equal); } return send_data; |