Commit f65cca4d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdiplus: Fix leak in SOFTWARE_GdipDrawDriverString.

parent c74d909e
......@@ -7224,8 +7224,13 @@ static GpStatus SOFTWARE_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UI
}
if (max_glyphsize == 0)
{
/* Nothing to draw. */
heap_free(pti);
DeleteDC(hdc);
DeleteObject(hfont);
return Ok;
}
glyph_mask = heap_alloc_zero(max_glyphsize);
text_mask = heap_alloc_zero((max_x - min_x) * (max_y - min_y));
......
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