]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpwnd.cpp
fix leak introduced by r53753
[wxWidgets.git] / src / html / helpwnd.cpp
index 7dc36c785e5e21d445aa5df9141204ed3f94c2a8..778594052f6dc2717def1ee6d9fd920f7a71b62d 100644 (file)
@@ -592,6 +592,9 @@ bool wxHtmlHelpWindow::Create(wxWindow* parent, wxWindowID id,
 
 wxHtmlHelpWindow::~wxHtmlHelpWindow()
 {
+    if ( m_helpController )
+        m_helpController->SetHelpWindow(NULL);
+
     delete m_mergedIndex;
 
     // PopEventHandler(); // wxhtmlhelpcontroller (not any more!)