summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-08-27 15:32:31 +0200
committerMilan Crha <mcrha@redhat.com>2015-08-27 15:32:31 +0200
commita382783cce2a8aca60c7752687f38b0a52f09e3d (patch)
tree727ac98cb41c3ce5869ba471dce27578e7605132
parent954138c2c73646daf85db71f8d617798853313cb (diff)
downloadevolution-data-server-a382783cce2a8aca60c7752687f38b0a52f09e3d.tar.gz
[IMAPx] Miscellaneous changes
- cache_stream in get_message can be NULL, thus count with it and do not cause runtime warning from g_object_unref() - if the whole folder content is removed on the server the local folder cache wasn't cleaned up, still showed cached message list
-rw-r--r--camel/providers/imapx/camel-imapx-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 99fb452fe..d8e2fee99 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -4040,7 +4040,7 @@ camel_imapx_server_get_message_sync (CamelIMAPXServer *is,
g_propagate_error (error, local_error);
}
- g_object_unref (cache_stream);
+ g_clear_object (&cache_stream);
return result_stream;
}
@@ -4874,7 +4874,7 @@ camel_imapx_server_refresh_info_sync (CamelIMAPXServer *is,
if (success && uidl != 1)
success = imapx_server_fetch_changes (is, mailbox, folder, known_uids, 0, uidl, cancellable, error);
- if (success && g_hash_table_size (known_uids) > 0) {
+ if (success) {
CamelFolderChangeInfo *changes;
GList *removed = NULL;
GPtrArray *array;