# HG changeset patch # User Jason Rumney # Date 1181161785 0 # Node ID 9aac5aff0ddaed1c16f2d978c4cb17fb285e83ea # Parent 11026ef03ce7a1e056f9b6d834d930e34b40dc1f (w32font_draw): Delete brush after using it. diff -r 11026ef03ce7 -r 9aac5aff0dda src/w32font.c --- a/src/w32font.c Wed Jun 06 20:28:01 2007 +0000 +++ b/src/w32font.c Wed Jun 06 20:29:45 2007 +0000 @@ -504,6 +504,7 @@ 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 @@ /* 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,