dwrite: Fix analysis leak on error path.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2015-10-28 21:00:49 +03:00 committed by Alexandre Julliard
parent 22fca3a110
commit edea5fc342
1 changed files with 1 additions and 0 deletions

View File

@ -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;