[evolution-data-server] [IMAPx] Miscellaneous changes



commit a382783cce2a8aca60c7752687f38b0a52f09e3d
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 27 15:32:31 2015 +0200

    [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

 camel/providers/imapx/camel-imapx-server.c |    4 ++--
 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 99fb452..d8e2fee 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]