Mercurial > emacs
diff src/w32bdf.c @ 78033:07295203c00a
(w32_BDF_to_x_font): Unmap memory when finished.
(w32_free_bdf_font): Unmap memory not handle.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Wed, 20 Jun 2007 21:26:16 +0000 |
parents | e90d04cd455a |
children | 922696f363b0 988f1edc9674 |
line wrap: on
line diff
--- a/src/w32bdf.c Wed Jun 20 15:22:59 2007 +0000 +++ b/src/w32bdf.c Wed Jun 20 21:26:16 2007 +0000 @@ -302,7 +302,7 @@ font_char *pch; cache_bitmap *pcb; - UnmapViewOfFile(fontp->hfilemap); + UnmapViewOfFile(fontp->font); CloseHandle(fontp->hfilemap); CloseHandle(fontp->hfile); @@ -867,6 +867,7 @@ retval = 1; } } + UnmapViewOfFile (font); CloseHandle (hfile); CloseHandle (hfilemap); return retval;