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:
@@ -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)
|
||||
};
|
||||
|
Reference in New Issue
Block a user