Commit 40ce1dd4 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

gdiplus: Fix a memory leak.

parent ecd16fed
......@@ -1069,7 +1069,11 @@ static void brush_fill_path(GpGraphics *graphics, GpBrush* brush)
{
HDC hdc = CreateCompatibleDC(NULL);
if (!hdc) break;
if (!hdc)
{
DeleteObject(bmp);
break;
}
SelectObject(hdc, bmp);
gdi_alpha_blend(graphics, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
......
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