aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-24 11:31:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-24 11:31:24 +0800
commit1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a (patch)
treeeb13c4daa62a258adc3d8300657edb16c1acc682 /mail/mail-ops.c
parent671a256001a83c0b20a97d1566576ee960dbdf9a (diff)
downloadgsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar.gz
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar.bz2
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar.lz
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar.xz
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.tar.zst
gsoc2013-evolution-1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a.zip
Don't free the folder-info here, instead have mail_append_mail() call our
2001-05-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_postpone_cb): Don't free the folder-info here, instead have mail_append_mail() call our new function, append_mail_cleanup() which'll free the folder-info. This fixes the problem of send-later segfaulting. svn path=/trunk/; revision=9958
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 4b99bc76ac..34a88a7b51 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -860,24 +860,25 @@ void
mail_append_mail (CamelFolder *folder,
CamelMimeMessage *message,
CamelMessageInfo *info,
- void (*done)(CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data), void *data)
+ void (*done)(CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data),
+ void *data)
{
struct _append_msg *m;
-
+
g_return_if_fail (CAMEL_IS_FOLDER (folder));
g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message));
-
- m = mail_msg_new(&append_mail_op, NULL, sizeof(*m));
+
+ m = mail_msg_new (&append_mail_op, NULL, sizeof (*m));
m->folder = folder;
- camel_object_ref((CamelObject *)folder);
+ camel_object_ref (CAMEL_OBJECT (folder));
m->message = message;
- camel_object_ref((CamelObject *)message);
+ camel_object_ref (CAMEL_OBJECT (message));
m->info = info;
-
+
m->done = done;
m->data = data;
-
- e_thread_put(mail_thread_new, (EMsg *)m);
+
+ e_thread_put (mail_thread_new, (EMsg *)m);
}
/* ** TRANSFER MESSAGES **************************************************** */