aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-28 15:03:27 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-28 15:03:27 +0800
commite9cddebb2ed8e6d0289f883d6a05b2951198bcb0 (patch)
tree52073f5f6fda3a037be9694c2dbd3b20baf6e468
parent95b04534574e410732ffbee5545f93a67f1e07c7 (diff)
downloadgsoc2013-evolution-e9cddebb2ed8e6d0289f883d6a05b2951198bcb0.tar.gz
gsoc2013-evolution-e9cddebb2ed8e6d0289f883d6a05b2951198bcb0.tar.zst
gsoc2013-evolution-e9cddebb2ed8e6d0289f883d6a05b2951198bcb0.zip
ref folder from mail_component_get_folder.
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. svn path=/trunk/; revision=24485
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-ops.c3
-rw-r--r--mail/mail-send-recv.c1
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;