diff --git a/include/wx/docmdi.h b/include/wx/docmdi.h index 0216cacdd7..1e3047bdd8 100644 --- a/include/wx/docmdi.h +++ b/include/wx/docmdi.h @@ -75,6 +75,7 @@ class WXDLLEXPORT wxDocMDIChildFrame: public wxMDIChildFrame inline wxView *GetView(void) const { return m_childView; } inline void SetDocument(wxDocument *doc) { m_childDocument = doc; } inline void SetView(wxView *view) { m_childView = view; } + bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); } protected: wxDocument* m_childDocument; wxView* m_childView; diff --git a/include/wx/docview.h b/include/wx/docview.h index 99c6c86a95..ac803a61aa 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -450,6 +450,7 @@ public: wxView *GetView() const { return m_childView; } void SetDocument(wxDocument *doc) { m_childDocument = doc; } void SetView(wxView *view) { m_childView = view; } + bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); } protected: wxDocument* m_childDocument;