gdiplus: Fix a handle leak in GdipDrawString.
This commit is contained in:
parent
0512829a27
commit
d0e6aa0204
|
@ -4411,7 +4411,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
|
|||
lfw.lfEscapement = lfw.lfOrientation = roundr((angle / M_PI) * 1800.0);
|
||||
|
||||
gdifont = CreateFontIndirectW(&lfw);
|
||||
DeleteObject(SelectObject(graphics->hdc, CreateFontIndirectW(&lfw)));
|
||||
DeleteObject(SelectObject(graphics->hdc, gdifont));
|
||||
|
||||
if (!format || format->align == StringAlignmentNear)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue