From 5b88a837ba75928cd3835a6b97ae2bf5ad983a6e Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Fri, 1 May 2009 14:15:13 +0000 Subject: [PATCH] don't place NULL pointers in the GDK window array in GTKGetWindow() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/radiobox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 18f02bf683..a0e73a219d 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -608,7 +608,9 @@ GdkWindow *wxRadioBox::GTKGetWindow(wxArrayGdkWindows& windows) const { GtkWidget *button = GTK_WIDGET( node->GetData()->button ); - windows.push_back(button->window); + // don't put NULL pointers in the 'windows' array! + if (button->window) + windows.push_back(button->window); node = node->GetNext(); }