Nikolay Sivov : dwrite: Fix analysis leak on error path.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 29 09:32:11 CDT 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Oct 28 21:00:49 2015 +0300

dwrite: Fix analysis leak on error path.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/gdiinterop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dwrite/gdiinterop.c b/dlls/dwrite/gdiinterop.c
index 53c9c51..7c8d319 100644
--- a/dlls/dwrite/gdiinterop.c
+++ b/dlls/dwrite/gdiinterop.c
@@ -408,6 +408,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
         hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &bounds);
         if (FAILED(hr)) {
             WARN("GetAlphaTextureBounds() failed, 0x%08x\n", hr);
+            IDWriteGlyphRunAnalysis_Release(analysis);
             return hr;
         }
         texturetype = DWRITE_TEXTURE_CLEARTYPE_3x1;




More information about the wine-cvs mailing list