diff options
author | Jason Rumney <jasonr@gnu.org> | 2007-06-20 21:32:32 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2007-06-20 21:32:32 +0000 |
commit | fab8b787ff048bddd6c0c91b23d40e34482c76b1 (patch) | |
tree | f767513011d37372d1c05c8c05a9d3238a9a6ac6 /src/w32bdf.c | |
parent | cfe440b88caf56ec6b51f3119b54daf63944714b (diff) | |
download | emacs-fab8b787ff048bddd6c0c91b23d40e34482c76b1.tar.gz emacs-fab8b787ff048bddd6c0c91b23d40e34482c76b1.tar.bz2 emacs-fab8b787ff048bddd6c0c91b23d40e34482c76b1.zip |
(w32_BDF_to_x_font): Unmap memory when finished.
(w32_free_bdf_font): Unmap memory not handle.
Diffstat (limited to 'src/w32bdf.c')
-rw-r--r-- | src/w32bdf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/w32bdf.c b/src/w32bdf.c index 64ec2f7a3b0..40e705a18c9 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c @@ -302,7 +302,7 @@ w32_free_bdf_font(bdffont *fontp) font_char *pch; cache_bitmap *pcb; - UnmapViewOfFile(fontp->hfilemap); + UnmapViewOfFile(fontp->font); CloseHandle(fontp->hfilemap); CloseHandle(fontp->hfile); @@ -867,6 +867,7 @@ int w32_BDF_to_x_font (char *file, char* xstr, int len) retval = 1; } } + UnmapViewOfFile (font); CloseHandle (hfile); CloseHandle (hfilemap); return retval; |