]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32font_close): Delete the GDI font object.
authorJason Rumney <jasonr@gnu.org>
Wed, 13 Jun 2007 22:52:21 +0000 (22:52 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 13 Jun 2007 22:52:21 +0000 (22:52 +0000)
src/w32font.c

index 701751fc41bddb18b50c1598a44f906a2ab20d97..9f3f4ae2da8bed2db617964be13c254f1c8e9682 100644 (file)
@@ -317,7 +317,7 @@ w32font_close (f, font)
   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;
     }