[balsa/gtk3] Possible fix for RedHat bug #1050738 (Geoff Leach)



commit 28e769bf56a4e9482fd77598c62a29c55196b595
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Jan 29 15:56:07 2015 -0500

    Possible fix for RedHat bug #1050738 (Geoff Leach)
    
        * src/balsa-index.c (bndx_compose_foreach): check for NULL
        compose window.

 ChangeLog         |    7 +++++++
 src/balsa-index.c |    5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fc31f46..6c69a50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-01-29  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Possible fix for RedHat bug #1050738 (Geoff Leach)
+
+       * src/balsa-index.c (bndx_compose_foreach): check for NULL
+       compose window.
+
+2015-01-29  Peter Bloomfield  <pbloomfield bellsouth net>
+
        Possible fix for RedHat bug #831889 (Geoff Leach)
 
        * src/sendmsg-window.c (collect_for_quote): check for NULL root.
diff --git a/src/balsa-index.c b/src/balsa-index.c
index c1e8f4d..28f8a0c 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -1553,8 +1553,9 @@ bndx_compose_foreach(BalsaIndex * index, SendType send_type)
             g_assert_not_reached();
             sm = NULL; /** silence invalid warnings */
         }
-        g_signal_connect(G_OBJECT(sm->window), "destroy",
-                         G_CALLBACK(sendmsg_window_destroy_cb), NULL);
+        if (sm)
+            g_signal_connect(G_OBJECT(sm->window), "destroy",
+                             G_CALLBACK(sendmsg_window_destroy_cb), NULL);
     }
     balsa_index_selected_msgnos_free(index, selected);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]