aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-11-30 21:06:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-11-30 21:18:55 +0800
commitf911f1754abaf97b9d08f751b97cfb2905d47616 (patch)
treebd8b1a20be1e9b06621814142ecf837a9ae0ba1f
parent9f7569cc8c01baff21957e2bc88568bc74999c4a (diff)
downloadgsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar.gz
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar.bz2
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar.lz
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar.xz
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.tar.zst
gsoc2013-evolution-f911f1754abaf97b9d08f751b97cfb2905d47616.zip
Avoid camel_service_get_session().
Use camel_service_ref_session() instead.
-rw-r--r--libemail-engine/mail-folder-cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index 672447c57e..37e19706e6 100644
--- a/libemail-engine/mail-folder-cache.c
+++ b/libemail-engine/mail-folder-cache.c
@@ -803,8 +803,10 @@ update_1folder (MailFolderCache *cache,
* in mail_folder_cache_new(), which just complicates
* application startup even more. */
service = CAMEL_SERVICE (folder_info->store);
- session = camel_service_get_session (service);
+ session = camel_service_ref_session (service);
registry = e_mail_session_get_registry (E_MAIL_SESSION (session));
+ g_object_unref (session);
+
g_return_if_fail (E_IS_SOURCE_REGISTRY (registry));
folder = g_weak_ref_get (&folder_info->folder);