Module: wine Branch: master Commit: 6401720dafdec4eba7aa52e4fbe9da8479b31a2c URL: http://source.winehq.org/git/wine.git/?a=commit;h=6401720dafdec4eba7aa52e4fb...
Author: Jeremy White jwhite@codeweavers.com Date: Fri Dec 11 09:25:25 2009 -0600
oleaut32/tests: Avoid a memory leak; spotted by Valgrind.
---
dlls/oleaut32/tests/usrmarshal.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tests/usrmarshal.c b/dlls/oleaut32/tests/usrmarshal.c index d57802c..9756eb4 100644 --- a/dlls/oleaut32/tests/usrmarshal.c +++ b/dlls/oleaut32/tests/usrmarshal.c @@ -396,7 +396,10 @@ static void test_marshal_LPSAFEARRAY(void) hr = SafeArrayGetElement(lpsa2, indices, &gotvalue); ok(hr == S_OK, "Failed to get bstr element at hres 0x%x\n", hr); if (hr == S_OK) + { ok(VarBstrCmp(values[i], gotvalue, 0, 0) == VARCMP_EQ, "String %d does not match\n", i); + SysFreeString(gotvalue); + } }
SysFreeString(values[i]);