From 9bcac2fe3f39eca82f1dc335b67bb912e35d3db1 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 8 Mar 2011 16:59:19 -0600 Subject: [PATCH] gdiplus: Fix a handle leak in GdipDrawString. --- dlls/gdiplus/graphics.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 43513c8..e9412c8 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -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) { -- 1.7.2.3