Fix memory leaks in wxAutomationObject::Invoke().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 May 2012 13:00:04 +0000 (13:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 May 2012 13:00:04 +0000 (13:00 +0000)
commitcf1a582ab947647cd17ad481c1b95e51b211ffcc
tree96fdd8959aa305c38b547e44fec1fa263b218700
parent4ba36292f4aa0d5767ac2d053f3a9bc9e74ba567
Fix memory leaks in wxAutomationObject::Invoke().

Use wxVector<>, wxBasicString and wxOleVariantArg instead of raw arrays, BSTR
and VARIANT to ensure that different objects allocated by this function are
always freed when it exits.

Closes #14293.

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