[evolution-data-server] Avoid camel_service_get_session().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Avoid camel_service_get_session().
- Date: Sat, 30 Nov 2013 13:17:14 +0000 (UTC)
commit ff6c0b81aa5ec80ca9eeea11da988ee6e76fcc65
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Nov 30 08:07:35 2013 -0500
Avoid camel_service_get_session().
Use camel_service_ref_session() instead.
camel/providers/imapx/camel-imapx-server.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 3cf1adb..b745b5b 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2765,13 +2765,14 @@ imapx_untagged_ok_no_bad (CamelIMAPXServer *is,
g_strdup (alert_message));
service = CAMEL_SERVICE (store);
- session = camel_service_get_session (service);
+ session = camel_service_ref_session (service);
camel_session_user_alert (
session, service,
CAMEL_SESSION_ALERT_WARNING,
alert_message);
+ g_object_unref (session);
g_object_unref (store);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]