aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-browser.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-18 20:07:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-18 20:42:47 +0800
commit4a2343cb34498c701e71679e3c50c9fc81dd5b80 (patch)
tree168c7cc72f93fc3685480eb551257a29487496df /mail/e-mail-browser.c
parent950e820a325fffe422ab70db3facae9573591b41 (diff)
downloadgsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar.gz
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar.bz2
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar.lz
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar.xz
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.tar.zst
gsoc2013-evolution-4a2343cb34498c701e71679e3c50c9fc81dd5b80.zip
Bug 618902 - Crash when viewing/closing messages quickly
Closing an EMailBrowser window causes it to be disposed immediately, but ongoing async operations still hold an EMailBrowser reference -- in particular, regenerating the internal message list and fetching a mail message. The callback functions for these operations were not equipped to deal with the disposed-but-not-yet-finalized object.
Diffstat (limited to 'mail/e-mail-browser.c')
-rw-r--r--mail/e-mail-browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index cf5176faf2..cd7ecd32fd 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -445,7 +445,8 @@ mail_browser_dispose (GObject *object)
}
if (priv->message_list != NULL) {
- g_object_unref (priv->message_list);
+ /* This will cancel a regen operation. */
+ gtk_widget_destroy (priv->message_list);
priv->message_list = NULL;
}