Daniel Lehman : oleaut32/tests: Fix type descriptions leak (valgrind).
Module: wine Branch: master Commit: 7021fd61c6c9834db15c85e8441ccb5c473c5b2e URL: http://source.winehq.org/git/wine.git/?a=commit;h=7021fd61c6c9834db15c85e844... Author: Daniel Lehman <dlehman25(a)gmail.com> Date: Wed Nov 23 00:27:04 2016 -0800 oleaut32/tests: Fix type descriptions leak (valgrind). Signed-off-by: Daniel Lehman <dlehman25(a)gmail.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oleaut32/tests/typelib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c index 3fdd245..6d0585a 100644 --- a/dlls/oleaut32/tests/typelib.c +++ b/dlls/oleaut32/tests/typelib.c @@ -5196,6 +5196,7 @@ static void test_SetFuncAndParamNames(void) ok(infos[0] && !infos[1] && !infos[2], "got wrong typeinfo\n"); ok(memids[0] == 0, "got wrong memid[0]\n"); ok(memids[1] == 0xdeadbeef && memids[2] == 0xdeadbeef, "got wrong memids\n"); + ITypeInfo_Release(infos[0]); found = 3; memset(infos, 0, sizeof(infos)); @@ -5208,6 +5209,8 @@ static void test_SetFuncAndParamNames(void) ok(infos[0] && infos[1] && infos[0] != infos[1], "got same typeinfo\n"); ok(memids[0] == 0, "got wrong memid[0]\n"); ok(memids[1] == 0, "got wrong memid[1]\n"); + ITypeInfo_Release(infos[0]); + ITypeInfo_Release(infos[1]); ITypeLib_Release(tl); ICreateTypeLib2_Release(ctl);
participants (1)
-
Alexandre Julliard