[evolution] [EMailBrowser] Free MessageList on close
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [EMailBrowser] Free MessageList on close
- Date: Thu, 12 Nov 2015 17:45:37 +0000 (UTC)
commit 73a97c34708ad0308fc13fa8f59bbcb0ef22ecb3
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 e9b733b..16e52ad 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]