Hans Leidekker : usp10: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Fri Nov 9 07:44:10 CST 2007


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

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Thu Nov  8 19:18:07 2007 +0100

usp10: Fix a memory leak.

---

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

diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index ca2f5b6..052a0f4 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -279,6 +279,7 @@ static void test_ScriptGetCMap(HDC hdc, unsigned short pwOutGlyphs[256])
     ok( hr == S_OK, "ScriptGetCMap(NULL,&psc,NULL,0,0,NULL), expected S_OK, "
                     "got %08x\n", hr);
     ok( psc != NULL, "ScritpGetCMap expected psc to be not NULL\n");
+    ScriptFreeCache( &psc);
 
     /* Set psc to NULL, to be able to check if a pointer is returned in psc */
     psc = NULL;




More information about the wine-cvs mailing list