Re: Bug report



On 06/27/2009 08:53:32 AM Sat, Geoffrey Leach wrote:
from crash is attached.

Hi Geoffrey!

Thanks for the report! So, it looks like you were closing an mbox-style mailbox with a deleted message still showing in a message window, is that right? Is the crash reproducible? I've tried the same steps, without crashing.

If the crash is reproducible, could you try the attached patch? It protects against the most likely cause, namely dereferencing a null pointer; I'm just puzzled as to how the pointer could get to be null!

Best,

Peter
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]