Daniel Lehman : oleaut32/tests: Fix type descriptions leak (valgrind).

Alexandre Julliard julliard at winehq.org
Wed Nov 23 16:08:38 CST 2016


Module: wine
Branch: master
Commit: 7021fd61c6c9834db15c85e8441ccb5c473c5b2e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7021fd61c6c9834db15c85e8441ccb5c473c5b2e

Author: Daniel Lehman <dlehman25 at gmail.com>
Date:   Wed Nov 23 00:27:04 2016 -0800

oleaut32/tests: Fix type descriptions leak (valgrind).

Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list