diff options
| author | Jason Rumney | 2007-06-20 21:26:53 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-20 21:26:53 +0000 |
| commit | 76e4973a857ec84c85df7c199530436c3150862d (patch) | |
| tree | 40cf25e67676f4727fff80cb26a72192f4329aa1 /src | |
| parent | 5fd6ff96085082b7ff81cb0ab93bb7618d88a840 (diff) | |
| download | emacs-76e4973a857ec84c85df7c199530436c3150862d.tar.gz emacs-76e4973a857ec84c85df7c199530436c3150862d.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 6f1be74a8e2..8a700909590 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 Juanma Barranquero <lekktu@gmail.com> | 6 | 2007-06-20 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * w32.c (_wsa_errlist): Fix typo in error message. | 8 | * w32.c (_wsa_errlist): Fix typo in error message. |
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; |