mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:44:47 +00:00
gdiplus: Fix a memory leak.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ecd16fed38
commit
40ce1dd473
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue