Test m_nowpeer pointer before using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,7 +95,7 @@ bool wxTopLevelWindowMac::Destroy()
|
|||||||
// NB: this will get called during destruction if we don't do it now,
|
// NB: this will get called during destruction if we don't do it now,
|
||||||
// and may fire a kill focus event on a control being destroyed
|
// and may fire a kill focus event on a control being destroyed
|
||||||
#if wxOSX_USE_CARBON
|
#if wxOSX_USE_CARBON
|
||||||
if (m_nowpeer->GetWXWindow())
|
if (m_nowpeer && m_nowpeer->GetWXWindow())
|
||||||
ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
|
ClearKeyboardFocus( (WindowRef)m_nowpeer->GetWXWindow() );
|
||||||
#endif
|
#endif
|
||||||
return wxTopLevelWindowBase::Destroy();
|
return wxTopLevelWindowBase::Destroy();
|
||||||
|
Reference in New Issue
Block a user