aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 533c35a2be..f7b5691498 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -515,11 +515,11 @@ receive_get_folder(CamelFilterDriver *d, const char *uri, void *data, CamelExcep
char *oldkey;
g_mutex_lock(info->data->lock);
- folder = g_hash_table_lookup(info->data->folders, uri);
+ oldinfo = g_hash_table_lookup(info->data->folders, uri);
g_mutex_unlock(info->data->lock);
- if (folder) {
- camel_object_ref((CamelObject *)folder);
- return folder;
+ if (oldinfo) {
+ camel_object_ref((CamelObject *)oldinfo->folder);
+ return oldinfo->folder;
}
folder = mail_tool_uri_to_folder(uri, ex);
if (!folder)