Rob Shearman : oleaut32: Fix a memory leak in the olefont tests.

Alexandre Julliard julliard at winehq.org
Mon Feb 4 08:42:57 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan 31 14:45:42 2008 +0000

oleaut32: Fix a memory leak in the olefont tests.

---

 dlls/oleaut32/tests/olefont.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c
index 1e6678b..11d6169 100644
--- a/dlls/oleaut32/tests/olefont.c
+++ b/dlls/oleaut32/tests/olefont.c
@@ -171,6 +171,7 @@ static void test_type_info(void)
 	ok(hres == S_OK, "GetNames returned 0x%08x instead of S_OK.\n", hres);
 	ok(n == 1, "GetNames returned %d names instead of 1.\n", n);
 	ok(!lstrcmpiW(names[0],name_Name), "DISPID_FONT_NAME doesn't get 'Names'.\n");
+	SysFreeString(names[0]);
 
 	ITypeInfo_Release(pTInfo);
 




More information about the wine-cvs mailing list