summaryrefslogtreecommitdiff
path: root/src/w32bdf.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-06-20 21:26:53 +0000
committerJason Rumney <jasonr@gnu.org>2007-06-20 21:26:53 +0000
commit76e4973a857ec84c85df7c199530436c3150862d (patch)
tree40cf25e67676f4727fff80cb26a72192f4329aa1 /src/w32bdf.c
parent5fd6ff96085082b7ff81cb0ab93bb7618d88a840 (diff)
downloademacs-76e4973a857ec84c85df7c199530436c3150862d.tar.gz
(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.c3
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;