gdiplus: Fix a handle leak in GdipDrawString.

This commit is contained in:
Vincent Povirk 2011-03-08 16:59:19 -06:00 committed by Alexandre Julliard
parent 0512829a27
commit d0e6aa0204
1 changed files with 1 additions and 1 deletions

View File

@ -4411,7 +4411,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
lfw.lfEscapement = lfw.lfOrientation = roundr((angle / M_PI) * 1800.0); lfw.lfEscapement = lfw.lfOrientation = roundr((angle / M_PI) * 1800.0);
gdifont = CreateFontIndirectW(&lfw); gdifont = CreateFontIndirectW(&lfw);
DeleteObject(SelectObject(graphics->hdc, CreateFontIndirectW(&lfw))); DeleteObject(SelectObject(graphics->hdc, gdifont));
if (!format || format->align == StringAlignmentNear) if (!format || format->align == StringAlignmentNear)
{ {