]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/nonownedwnd.cpp
applying patch, fixes #10523
[wxWidgets.git] / src / dfb / nonownedwnd.cpp
index d77669378c8c0aa32c7aae08c04c767d394d7600..c455d5e4ffa1c9a9b3ff8082576279d64fb8280a 100644 (file)
@@ -153,7 +153,7 @@ bool wxNonOwnedWindow::Create(wxWindow *parent,
 
 wxNonOwnedWindow::~wxNonOwnedWindow()
 {
-    m_isBeingDeleted = true;
+    SendDestroyEvent();
 
     // destroy all children before we destroy the underlying DirectFB window,
     // so that if any of them does something with the TLW, it will still work: