diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-24 11:31:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-24 11:31:24 +0800 |
commit | 1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a (patch) | |
tree | eb13c4daa62a258adc3d8300657edb16c1acc682 /mail/mail-callbacks.c | |
parent | 671a256001a83c0b20a97d1566576ee960dbdf9a (diff) | |
download | gsoc2013-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-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 778dc5f043..38734b37cf 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -368,6 +368,12 @@ composer_send_cb (EMsgComposer *composer, gpointer data) mail_send_mail (transport->url, message, composer_sent_cb, send); } +static void +append_mail_cleanup (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data) +{ + camel_message_info_free (info); +} + void composer_postpone_cb (EMsgComposer *composer, gpointer data) { @@ -382,9 +388,8 @@ composer_postpone_cb (EMsgComposer *composer, gpointer data) info = camel_message_info_new (); info->flags = CAMEL_MESSAGE_SEEN; - mail_append_mail (outbox_folder, message, info, NULL, NULL); + mail_append_mail (outbox_folder, message, info, append_mail_cleanup, NULL); camel_object_unref (CAMEL_OBJECT (message)); - camel_message_info_free (info); if (psd) { camel_folder_set_message_flags (psd->folder, psd->uid, psd->flags, psd->flags); |