msxml3: Fix double-free of BSTR in domdoc tests.

Rob Shearman robertshearman at gmail.com
Wed Dec 2 08:21:54 CST 2009


Using the _bstr_ allocator adds the returned string to a cache, so the
string shouldn't be freed with SysFreeString. Therefore, just replace
the lone call to _bstr_ in this function by a straight call to
SysAllocString.
---
 dlls/msxml3/tests/domdoc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-msxml3-Fix-double-free-of-BSTR-in-domdoc-tests.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091202/0c6e719b/attachment-0001.bin>


More information about the wine-patches mailing list