]> git.saurik.com Git - wxWidgets.git/commit
Always create new OLE objects with reference count of 1, not 0.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:41:41 +0000 (22:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:41:41 +0000 (22:41 +0000)
commit648c1af93dc6a654c03a1a5e4f7744411adc2110
tree34fb989b6d8f8f376a74700f7dca1ce1a2f99df2
parente0b5dc3d63521f09691b14c1665370d85ef042ea
Always create new OLE objects with reference count of 1, not 0.

There are no real changes but ensure that the new objects of classes using
DECLARE_OLE_UNKNOWN() macro are created with valid reference count of 1
instead of being created in phantom state with reference count of 0.

Remove the now unnecessary AddRef() and add the now required DecRef() calls.

See #11566.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/ole/activex.cpp