[evolution] Bug #649952 - Do not unref result of camel_session_get_service()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #649952 - Do not unref result of camel_session_get_service()
- Date: Wed, 11 May 2011 14:58:22 +0000 (UTC)
commit e72c7e8dda826fbb089832f778585191ea784bee
Author: Milan Crha <mcrha redhat com>
Date: Wed May 11 16:57:58 2011 +0200
Bug #649952 - Do not unref result of camel_session_get_service()
mail/em-folder-tree.c | 2 ++
mail/mail-ops.c | 1 -
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 43bf83c..b9b1173 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -478,6 +478,8 @@ folder_tree_expand_node (const gchar *key,
if (store == NULL)
return;
+
+ g_object_ref (store);
} else if (!strcmp (uid, "vfolder")) {
if (!(store = vfolder_store))
return;
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 8288ac2..d6507ec 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2408,7 +2408,6 @@ check_service_exec (struct _check_msg *m,
m->authtypes = camel_service_query_auth_types_sync (
service, cancellable, error);
- g_object_unref (service);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]