Hans Leidekker : usp10: Fix a memory leak.
Alexandre Julliard
julliard at winehq.org
Mon Dec 7 10:26:17 CST 2009
Module: wine
Branch: master
Commit: 7d3f37fcbd23e66c1822157173392573499a0f59
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d3f37fcbd23e66c1822157173392573499a0f59
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Dec 7 09:18:58 2009 +0100
usp10: Fix a memory leak.
Found by Valgrind.
---
dlls/usp10/usp10.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index aefe6cc..523bd4f 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -923,7 +923,9 @@ HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
TRACE("(%p)\n", pssa);
if (!pssa || !(analysis = *pssa)) return E_INVALIDARG;
+
invalid = analysis->invalid;
+ ScriptFreeCache((SCRIPT_CACHE *)&analysis->sc);
for (i = 0; i < analysis->numItems; i++)
{
More information about the wine-cvs
mailing list