diff options
| author | Jason Rumney | 2007-06-20 21:32:32 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-20 21:32:32 +0000 |
| commit | fab8b787ff048bddd6c0c91b23d40e34482c76b1 (patch) | |
| tree | f767513011d37372d1c05c8c05a9d3238a9a6ac6 /src | |
| parent | cfe440b88caf56ec6b51f3119b54daf63944714b (diff) | |
| download | emacs-fab8b787ff048bddd6c0c91b23d40e34482c76b1.tar.gz emacs-fab8b787ff048bddd6c0c91b23d40e34482c76b1.zip | |
(w32_BDF_to_x_font): Unmap memory when finished.
(w32_free_bdf_font): Unmap memory not handle.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32bdf.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5861f7e6043..3707ba5d82a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-06-20 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. | ||
| 4 | (w32_free_bdf_font): Unmap memory not handle. | ||
| 5 | |||
| 1 | 2007-06-20 Sam Steingold <sds@gnu.org> | 6 | 2007-06-20 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * gmalloc.c (__morecore): Fix the declaration to comply with the | 8 | * gmalloc.c (__morecore): Fix the declaration to comply with the |
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) | |||
| 302 | font_char *pch; | 302 | font_char *pch; |
| 303 | cache_bitmap *pcb; | 303 | cache_bitmap *pcb; |
| 304 | 304 | ||
| 305 | UnmapViewOfFile(fontp->hfilemap); | 305 | UnmapViewOfFile(fontp->font); |
| 306 | CloseHandle(fontp->hfilemap); | 306 | CloseHandle(fontp->hfilemap); |
| 307 | CloseHandle(fontp->hfile); | 307 | CloseHandle(fontp->hfile); |
| 308 | 308 | ||
| @@ -867,6 +867,7 @@ int w32_BDF_to_x_font (char *file, char* xstr, int len) | |||
| 867 | retval = 1; | 867 | retval = 1; |
| 868 | } | 868 | } |
| 869 | } | 869 | } |
| 870 | UnmapViewOfFile (font); | ||
| 870 | CloseHandle (hfile); | 871 | CloseHandle (hfile); |
| 871 | CloseHandle (hfilemap); | 872 | CloseHandle (hfilemap); |
| 872 | return retval; | 873 | return retval; |