Make destructors of COM interface classes virtual.
This is needed to at least silence g++ warnings but may actually even fix a real problem as these classes can be inherited from and are deleted via a pointer (to "this" itself, in Release() implementation). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,7 +221,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
|
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
|
||||||
~VirtualProtocol() {}
|
virtual ~VirtualProtocol() {}
|
||||||
|
|
||||||
//IUnknown
|
//IUnknown
|
||||||
DECLARE_IUNKNOWN_METHODS;
|
DECLARE_IUNKNOWN_METHODS;
|
||||||
@@ -256,7 +256,8 @@ class ClassFactory : public IClassFactory
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler)
|
ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler)
|
||||||
{ AddRef(); }
|
{ AddRef(); }
|
||||||
|
virtual ~ClassFactory() {}
|
||||||
|
|
||||||
wxString GetName() { return m_handler->GetName(); }
|
wxString GetName() { return m_handler->GetName(); }
|
||||||
|
|
||||||
@@ -286,7 +287,7 @@ class DocHostUIHandler : public wxIDocHostUIHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DocHostUIHandler(wxWebView* browser) { m_browser = browser; }
|
DocHostUIHandler(wxWebView* browser) { m_browser = browser; }
|
||||||
~DocHostUIHandler() {};
|
virtual ~DocHostUIHandler() {}
|
||||||
|
|
||||||
virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
|
virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
|
||||||
IUnknown *pcmdtReserved,
|
IUnknown *pcmdtReserved,
|
||||||
|
Reference in New Issue
Block a user