diff options
author | Milan Crha <mcrha@redhat.com> | 2012-07-10 16:55:16 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-07-10 16:55:16 +0800 |
commit | 82e980001bdbc20996985f1ec33b968cd133d677 (patch) | |
tree | 3d4c5716baf62a80eba4485bb1baa0d4c24eb201 /libemail-engine | |
parent | c14ebe73581fba5afa527c188507d1d50b2ebdd7 (diff) | |
download | gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.gz gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.tar.zst gsoc2013-evolution-82e980001bdbc20996985f1ec33b968cd133d677.zip |
Always notify about finished updated_folders() call
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/mail-folder-cache.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c index 2c832f501b..71dd237799 100644 --- a/libemail-engine/mail-folder-cache.c +++ b/libemail-engine/mail-folder-cache.c @@ -830,6 +830,7 @@ update_folders (CamelStore *store, CamelFolderInfo *fi; StoreInfo *si; GError *error = NULL; + gboolean free_fi = TRUE; fi = camel_store_get_folder_info_finish (store, result, &error); @@ -857,14 +858,10 @@ update_folders (CamelStore *store, si->first_update = FALSE; } - if (fi != NULL) { - gboolean free_fi = TRUE; - - if (ud->done != NULL) - free_fi = ud->done (ud->cache, store, fi, ud->data); - if (free_fi) - camel_store_free_folder_info (store, fi); - } + if (ud->done != NULL) + free_fi = ud->done (ud->cache, store, fi, ud->data); + if (fi && free_fi) + camel_store_free_folder_info (store, fi); if (ud->cancellable != NULL) g_object_unref (ud->cancellable); |