Commit edea5fc3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Fix analysis leak on error path.

parent 22fca3a1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment