[evolution/wip/webkit2] [EMailBrowser] Free MessageList on close



commit 0168fecfc55dc2c4e837140578120b2153d0d83c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 12 18:43:45 2015 +0100

    [EMailBrowser] Free MessageList on close
    
    There was left a MessageList instance from within the EMailBroser
    whenever it was closed, due to it adding a reference to the message
    list but not removing it properly.

 mail/e-mail-browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index f7ba76e..b733caf 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -587,7 +587,7 @@ mail_browser_dispose (GObject *object)
        if (priv->message_list != NULL) {
                /* This will cancel a regen operation. */
                gtk_widget_destroy (priv->message_list);
-               priv->message_list = NULL;
+               g_clear_object (&priv->message_list);
        }
 
        /* Chain up to parent's dispose() method. */


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