[evolution/gnome-3-18] [EMailBrowser] Free MessageList on close
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] [EMailBrowser] Free MessageList on close
- Date: Thu, 12 Nov 2015 17:49:56 +0000 (UTC)
commit 470511deb265cb3140e518e6ae784b3c21dfa338
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 725f7e9..350e488 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -572,7 +572,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]