[evolution] Avoid camel_service_get_session().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Avoid camel_service_get_session().
- Date: Sat, 30 Nov 2013 13:17:28 +0000 (UTC)
commit f911f1754abaf97b9d08f751b97cfb2905d47616
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Nov 30 08:06:00 2013 -0500
Avoid camel_service_get_session().
Use camel_service_ref_session() instead.
libemail-engine/mail-folder-cache.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index 672447c..37e1970 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]