From: Vadim Zeitlin Date: Wed, 14 Jan 2009 15:41:59 +0000 (+0000) Subject: don't try to destroy the already destroyed OCX HWND X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/07a971eeffd1b868e80c54e462a5acec27ca96bf don't try to destroy the already destroyed OCX HWND git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/activex.cpp b/src/msw/ole/activex.cpp index 0f3ccfa750..c8383a509c 100644 --- a/src/msw/ole/activex.cpp +++ b/src/msw/ole/activex.cpp @@ -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