aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index db2230ccb5..5043d82d73 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -813,6 +813,12 @@ do_scan_subfolders (gpointer in_data, gpointer op_data, CamelException * ex)
}
camel_folder_free_subfolder_names (folder, lsub);
+
+ /* FIXME: We intentionally lose a reference to the store here
+ * for the benefit of the IMAP provider. Undo this when the
+ * namespace situation is fixed.
+ */
+ camel_object_ref (CAMEL_OBJECT (folder->parent_store));
camel_object_unref (CAMEL_OBJECT (folder));
}