Huw Davies : oleaut32: Fix a memory leak in the tests.
Alexandre Julliard
julliard at winehq.org
Mon Dec 14 09:51:11 CST 2009
Module: wine
Branch: master
Commit: 663e11b256de90fd9521841a62a34c78844691a1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=663e11b256de90fd9521841a62a34c78844691a1
Author: Huw Davies <huw at 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)
More information about the wine-cvs
mailing list