aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 8ca30bced8..cf140f7643 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -302,10 +302,10 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex)
camel_object_unref (CAMEL_OBJECT (folder));
folder = NULL;
}
- }
- camel_url_free (url);
+ } else
+ mail_folder_cache_note_folder (uri, folder);
- mail_folder_cache_note_folder (uri, folder);
+ camel_url_free (url);
return folder;
}