[PATCH] oleaut32/tests: Fix type descriptions leak (valgrind)

Daniel Lehman dlehman25 at gmail.com
Wed Nov 23 02:27:04 CST 2016


Fixes:
https://bugs.winehq.org/show_bug.cgi?id=36138
Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
---
 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);
-- 
2.7.4




More information about the wine-patches mailing list