diff options
Diffstat (limited to 'libemail-engine/e-mail-folder-utils.c')
-rw-r--r-- | libemail-engine/e-mail-folder-utils.c | 4 |
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; |