From f2b25c0e737018b4029499294328bb6d8475c6fa Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Wed, 6 Jun 2007 20:29:45 +0000 Subject: [PATCH] (w32font_draw): Delete brush after using it. --- src/w32font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/w32font.c b/src/w32font.c index 8f9350cdd96..701751fc41b 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -504,6 +504,7 @@ w32font_draw (s, from, to, x, y, with_background) rect.right = x + s->width; rect.bottom = y + ((struct font *) (s->font_info->font))->descent; FillRect (s->hdc, &rect, brush); + DeleteObject (brush); } else SetBkMode (s->hdc, TRANSPARENT); @@ -535,7 +536,7 @@ w32font_done_face (FRAME_PTR f, struct face *face); */ /* w32 implementation of get_bitmap for font backend. Optional. Store bitmap data for glyph-code CODE of FONT in BITMAP. It is - intended that this method is callled from the other font-driver + intended that this method is called from the other font-driver for actual drawing. static int w32font_get_bitmap (struct font *font, unsigned code, -- 2.39.5