From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Wed, 30 Mar 2005 04:52:01 +0000 (+0000)
Subject: guarding against calls in the destruction sequence of a window
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9942b0b587b95931b6bfc10eebf1a76b99a13333

guarding against calls in the destruction sequence of a window


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/mac/carbon/uma.cpp b/src/mac/carbon/uma.cpp
index 807f122922..5eb2fbc5ba 100644
--- a/src/mac/carbon/uma.cpp
+++ b/src/mac/carbon/uma.cpp
@@ -798,7 +798,7 @@ Rect* UMAGetControlBoundsInWindowCoords(ControlRef theControl, Rect *bounds)
     WindowRef tlwref = GetControlOwner( theControl ) ;
 
     wxTopLevelWindowMac* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
-    if ( tlwwx->MacUsesCompositing() )
+    if ( tlwwx != NULL && tlwwx->MacUsesCompositing() )
     {
         ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;
         HIPoint hiPoint = CGPointMake(  0 , 0 ) ;