]> git.saurik.com Git - wxWidgets.git/commitdiff
don't try to destroy the already destroyed OCX HWND
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Jan 2009 15:41:59 +0000 (15:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Jan 2009 15:41:59 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/activex.cpp

index 0f3ccfa75040e1c84dd85c4bd2b4af3f1fc73094..c8383a509cdcf319aeb1e661e4ca04a9d0c34e29 100644 (file)
@@ -833,6 +833,9 @@ wxActiveXContainer::~wxActiveXContainer()
     // m_clientSite uses m_frameSite so destroy it first
     m_clientSite.Free();
     delete m_frameSite;
+
+    // our window doesn't belong to us, don't destroy it
+    m_hWnd = NULL;
 }
 
 // VZ: we might want to really report an error instead of just asserting here