Module: wine Branch: master Commit: 663e11b256de90fd9521841a62a34c78844691a1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=663e11b256de90fd9521841a62...
Author: Huw Davies huw@codeweavers.com Date: Sat Dec 12 14:04:35 2009 +0000
oleaut32: Fix a memory leak in the tests.
Found by Valgrind.
---
dlls/oleaut32/tests/dispatch.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tests/dispatch.c b/dlls/oleaut32/tests/dispatch.c index c81210f..09c4d69 100644 --- a/dlls/oleaut32/tests/dispatch.c +++ b/dlls/oleaut32/tests/dispatch.c @@ -264,6 +264,7 @@ void test_DispGetParam(void) ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); ok(V_VT(&result) == VT_BSTR, "Expected VT_BSTR, got %08x\n", V_VT(&result)); ok(err_index == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", err_index); + VariantClear(&result); }
START_TEST(dispatch)