Attempt to avoid crash on exit on Solaris 10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,7 +122,11 @@ void wxApp::CleanUp()
|
|||||||
it != end; ++it )
|
it != end; ++it )
|
||||||
{
|
{
|
||||||
delete it->second->m_visualInfo;
|
delete it->second->m_visualInfo;
|
||||||
|
// On Solaris 10 calling XtDestroyWidget on the top level widget
|
||||||
|
// dumps core if the locale is set to something other than "C"
|
||||||
|
#ifndef __SUN__
|
||||||
XtDestroyWidget( it->second->m_topLevelWidget );
|
XtDestroyWidget( it->second->m_topLevelWidget );
|
||||||
|
#endif
|
||||||
delete it->second;
|
delete it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user