]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempt to avoid crash on exit on Solaris 10
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 7 Oct 2005 21:08:00 +0000 (21:08 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 7 Oct 2005 21:08:00 +0000 (21:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/app.cpp

index 30f5e9b98fa8f7a1a55cc8c43067434b9a2d18b3..b41edba1479a0f2c6bc3e2f068fea27232b7e9af 100644 (file)
@@ -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;
     }