From 9e0fb9661593521046dd9b7f1d92ef71bd0e94fe Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Sat, 1 Oct 2011 19:22:28 +0000 Subject: [PATCH] Correctly initialise ref count in custom scheme class factory. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/webview_ie.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/webview_ie.h b/include/wx/msw/webview_ie.h index f6e7688c46..407174b0e5 100644 --- a/include/wx/msw/webview_ie.h +++ b/include/wx/msw/webview_ie.h @@ -209,10 +209,8 @@ public: class ClassFactory : public IClassFactory { -private: - ULONG m_refCount; public: - ClassFactory(wxSharedPtr handler) : m_handler(handler) {} + ClassFactory(wxSharedPtr handler) : m_handler(handler), m_refCount(0) {} //IUnknown ULONG STDMETHODCALLTYPE AddRef(); HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject); @@ -223,6 +221,7 @@ public: REFIID riid, void** ppvObject); HRESULT STDMETHODCALLTYPE LockServer(BOOL fLock); private: + ULONG m_refCount; wxSharedPtr m_handler; };