[gtk+/wip/action-helper] gtkactionhelper: fix crash when 'group' is NULL



commit f56783efaf065a6c4694f08404995edeb5ff5dbf
Author: Lars Uebernickel <lars uebernic de>
Date:   Fri Jun 22 17:27:08 2012 +0200

    gtkactionhelper: fix crash when 'group' is NULL

 gtk/gtkactionhelper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkactionhelper.c b/gtk/gtkactionhelper.c
index 4c79f92..f4da0e5 100644
--- a/gtk/gtkactionhelper.c
+++ b/gtk/gtkactionhelper.c
@@ -454,7 +454,7 @@ gtk_action_helper_actions_changed (GtkWidget   *widget,
     return;
 
   /* We already had the group and we still have the same one. */
-  if (helper->group->group == group)
+  if (helper->group && helper->group->group == group)
     return;
 
   /* At this point we know that a change of some kind will happen.



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