]> git.saurik.com Git - wxWidgets.git/commitdiff
Correctly initialise ref count in custom scheme class factory.
authorSteve Lamerton <steve.lamerton@gmail.com>
Sat, 1 Oct 2011 19:22:28 +0000 (19:22 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Sat, 1 Oct 2011 19:22:28 +0000 (19:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/webview_ie.h

index f6e7688c46e884763c81212517e40e5a091f676a..407174b0e5efad39665503c062253fc0e323dcb5 100644 (file)
@@ -209,10 +209,8 @@ public:
 
 class ClassFactory : public IClassFactory
 {
-private:
-    ULONG m_refCount;
 public:
-    ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler) {}
+    ClassFactory(wxSharedPtr<wxWebViewHandler> 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<wxWebViewHandler> m_handler;
 };