delete wxNativeContainerWindow when the native window is destroyed, even if this means leaking memory in GTK case -- still better than getting X errors and crashing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-11 00:03:46 +00:00
parent 4f6b94a33a
commit 2aee749cb1
3 changed files with 72 additions and 2 deletions

View File

@@ -145,6 +145,13 @@ public:
return false;
}
// this is an implementation detail: called when the native window is
// destroyed by an outside agency; deletes the C++ object too but can in
// principle be overridden to something else (knowing that the window
// handle of this object and all of its children is invalid any more)
virtual void OnNativeDestroyed();
private:
DECLARE_NO_COPY_CLASS(wxNativeContainerWindow)
};