diff options
| author | Jason Rumney | 2007-06-13 22:52:21 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-13 22:52:21 +0000 |
| commit | e9a152832edd141a1624ac017de2f6da3877e438 (patch) | |
| tree | be8ce4aa39dd36ad94ed6640acc068782797c2ca /src | |
| parent | 25904b8f68401199b60cf3ad638fa3a148eb61f3 (diff) | |
| download | emacs-e9a152832edd141a1624ac017de2f6da3877e438.tar.gz emacs-e9a152832edd141a1624ac017de2f6da3877e438.zip | |
(w32font_close): Delete the GDI font object.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32font.c b/src/w32font.c index 701751fc41b..9f3f4ae2da8 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -317,7 +317,7 @@ w32font_close (f, font) | |||
| 317 | if (font->font.font) | 317 | if (font->font.font) |
| 318 | { | 318 | { |
| 319 | W32FontStruct *old_w32_font = (W32FontStruct *)font->font.font; | 319 | W32FontStruct *old_w32_font = (W32FontStruct *)font->font.font; |
| 320 | DeleteObject (font->font.font); | 320 | DeleteObject (old_w32_font->hfont); |
| 321 | xfree (old_w32_font); | 321 | xfree (old_w32_font); |
| 322 | font->font.font = 0; | 322 | font->font.font = 0; |
| 323 | } | 323 | } |