fix memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -242,9 +242,11 @@ void wxButton::DoApplyWidgetStyle(GtkRcStyle *style)
|
||||
GtkWidget *box = GTK_BIN(child)->child;
|
||||
if ( GTK_IS_BOX(box) )
|
||||
{
|
||||
GList *items = gtk_container_get_children(GTK_CONTAINER(box));
|
||||
for ( GList *item = items; item; item = item->next )
|
||||
gtk_widget_modify_style(GTK_WIDGET(item->data), style);
|
||||
for (GList* item = GTK_BOX(box)->children; item; item = item->next)
|
||||
{
|
||||
GtkBoxChild* boxChild = static_cast<GtkBoxChild*>(item->data);
|
||||
gtk_widget_modify_style(boxChild->widget, style);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user