From 07a971eeffd1b868e80c54e462a5acec27ca96bf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 14 Jan 2009 15:41:59 +0000 Subject: [PATCH] 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 --- src/msw/ole/activex.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0