diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 30f5e9b98f..b41edba147 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -122,7 +122,11 @@ void wxApp::CleanUp() it != end; ++it ) { 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 ); +#endif delete it->second; }