diff options
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 4f9fc77968..38225769b7 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -134,6 +134,11 @@ filter_folder_filter (struct _mail_msg *mm) if (m->destination) camel_folder_thaw (m->destination); + + /* this may thaw/unref source folders, do it here so we dont do it in the main thread + see also fetch_mail_fetch() below */ + camel_object_unref(CAMEL_OBJECT(m->driver)); + m->driver = NULL; if (m->cancel) camel_operation_unregister (m->cancel); |