[balsa] Check for NULL message
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Subject: [balsa] Check for NULL message
- Date: Thu, 9 Jul 2009 23:57:03 +0000 (UTC)
commit 55b19bd982ba96978ae9420148be631b15994e52
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Jul 9 19:56:56 2009 -0400
Check for NULL message
ChangeLog | 4 ++++
src/message-window.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8d2e032..faed616 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-07-09 Peter Bloomfield
+ * src/message-window.c (mw_expunged_cb): check for NULL message.
+
+2009-07-09 Peter Bloomfield
+
* libbalsa/mailbox_mbox.c (libbalsa_mailbox_mbox_sync): check
for error in GMimeParser.
diff --git a/src/message-window.c b/src/message-window.c
index 944e0fa..58615dd 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -667,7 +667,7 @@ destroy_message_window(GtkWidget * widget, MessageWindow * mw)
static void
mw_expunged_cb(LibBalsaMailbox * mailbox, guint msgno, MessageWindow * mw)
{
- if ((guint) mw->message->msgno == msgno)
+ if (mw->message && (guint) mw->message->msgno == msgno)
gtk_widget_destroy(mw->window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]