changeset 90933:bd1251472ab9

(w32font_close): Delete the GDI font object.
author Jason Rumney <jasonr@gnu.org>
date Wed, 13 Jun 2007 22:52:21 +0000
parents cf83e3b7a780
children af868af9258b
files src/w32font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32font.c	Wed Jun 13 21:06:31 2007 +0000
+++ b/src/w32font.c	Wed Jun 13 22:52:21 2007 +0000
@@ -317,7 +317,7 @@
   if (font->font.font)
     {
       W32FontStruct *old_w32_font = (W32FontStruct *)font->font.font;
-      DeleteObject (font->font.font);
+      DeleteObject (old_w32_font->hfont);
       xfree (old_w32_font);
       font->font.font = 0;
     }