X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8afff01ccdc8b71407caa2c9c09c8196ffbf5e3..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/nonownedwnd_osx.cpp diff --git a/src/osx/nonownedwnd_osx.cpp b/src/osx/nonownedwnd_osx.cpp index d8b9e02ce7..39d569c003 100644 --- a/src/osx/nonownedwnd_osx.cpp +++ b/src/osx/nonownedwnd_osx.cpp @@ -13,6 +13,7 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/log.h" #endif // WX_PRECOMP #include "wx/hashmap.h" @@ -151,7 +152,7 @@ bool wxNonOwnedWindow::Create(wxWindow *parent, wxNonOwnedWindow::~wxNonOwnedWindow() { - m_isBeingDeleted = true; + SendDestroyEvent(); wxRemoveWXWindowAssociation( this ) ;