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
This commit is contained in:
@@ -833,6 +833,9 @@ wxActiveXContainer::~wxActiveXContainer()
|
|||||||
// m_clientSite uses m_frameSite so destroy it first
|
// m_clientSite uses m_frameSite so destroy it first
|
||||||
m_clientSite.Free();
|
m_clientSite.Free();
|
||||||
delete m_frameSite;
|
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
|
// VZ: we might want to really report an error instead of just asserting here
|
||||||
|
Reference in New Issue
Block a user