aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/e-mail-folder-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-13 02:16:04 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-13 02:16:04 +0800
commitcfc8ef4c6ca14603c9ea8dd8429e8297e9c51980 (patch)
tree1624757b388826972c4fc5a47a23e112a02ce203 /libemail-engine/e-mail-folder-utils.c
parent6be2668e483cfc7a2e75ae2efcd9675388d08601 (diff)
downloadgsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.gz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.bz2
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.lz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.xz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.zst
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.zip
Adapt to CamelService API changes.
camel_service_get_settings() is now camel_service_ref_settings() and it returns a new CamelSettings reference which the caller must release with g_object_unref().
Diffstat (limited to 'libemail-engine/e-mail-folder-utils.c')
-rw-r--r--libemail-engine/e-mail-folder-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libemail-engine/e-mail-folder-utils.c b/libemail-engine/e-mail-folder-utils.c
index 78e5434ed9..5d4fa2e2b1 100644
--- a/libemail-engine/e-mail-folder-utils.c
+++ b/libemail-engine/e-mail-folder-utils.c
@@ -313,7 +313,7 @@ mail_folder_expunge_pop3_stores (CamelFolder *folder,
CAMEL_SESSION (session), source_uid);
service_uid = camel_service_get_uid (service);
- settings = camel_service_get_settings (service);
+ settings = camel_service_ref_settings (service);
g_object_get (
settings,
@@ -321,6 +321,8 @@ mail_folder_expunge_pop3_stores (CamelFolder *folder,
"keep-on-server", &keep_on_server,
NULL);
+ g_object_unref (settings);
+
if (!keep_on_server || !delete_expunged) {
g_object_unref (service);
continue;