From 7d3f37fcbd23e66c1822157173392573499a0f59 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 7 Dec 2009 09:18:58 +0100 Subject: [PATCH] usp10: Fix a memory leak. Found by Valgrind. --- dlls/usp10/usp10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index aefe6cc65a2..523bd4f9aab 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++) { -- 2.11.4.GIT