aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-folder-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r--mail/mail-folder-cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 9cad33c02e..b1bf92bee0 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -236,8 +236,10 @@ real_note_folder(CamelFolder *folder, void *event_data, void *data)
}
/* dont do anything if we already have this */
- if (mfi->folder == folder)
+ if (mfi->folder == folder) {
+ camel_object_unref (CAMEL_OBJECT (folder));
return;
+ }
mfi->folder = folder;
update_1folder(mfi, NULL);