From df7e062c8c36269d86961098111499ce628b1ee9 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Fri, 7 Oct 2005 21:08:00 +0000 Subject: [PATCH] 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 --- src/motif/app.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.45.2