usp10: fix memory leak

Pierre Schweitzer pierre at reactos.org
Thu Dec 8 16:05:21 CST 2011


-------------- next part --------------
>From 3e677d7c78a20233db448d8a0b4685652e9e8209 Mon Sep 17 00:00:00 2001
From: Pierre Schweitzer <pierre at reactos.org>
Date: Thu, 8 Dec 2011 22:58:56 +0100
Subject: usp10: Fix memory leak

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

diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 1506bd5..359d4a3 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -1464,6 +1464,7 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
 
             if (!glyphs || !pwLogClust || !piAdvance || !psva || !pGoffset || !abc)
             {
+                heap_free (BidiLevel);
                 heap_free (glyphs);
                 heap_free (pwLogClust);
                 heap_free (piAdvance);
-- 
1.7.4.1



More information about the wine-patches mailing list