Module: wine Branch: master Commit: d7682104e6038c86a4f2e153fd941a7bc46ac548 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d7682104e6038c86a4f2e153fd...
Author: Rob Shearman rob@codeweavers.com Date: Thu Dec 6 14:06:15 2007 +0000
oleaut32: Fix two memory leaks in the test for DispCallFunc.
---
dlls/oleaut32/tests/tmarshal.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index c96fb33..ce645bf 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -1160,6 +1160,8 @@ static void test_DispCallFunc(void) hr = DispCallFunc(pWidget, 36, CC_STDCALL, VT_UI4, 4, rgvt, rgpvarg, &varresult); ok_ole_success(hr, DispCallFunc); VariantClear(&varresult); + VariantClear(&vararg[1]); + VariantClear(&vararg[2]); }
START_TEST(tmarshal)