(w32_BDF_to_x_font): Unmap memory when finished.

(w32_free_bdf_font): Unmap memory not handle.
This commit is contained in:
Jason Rumney 2007-06-20 21:32:32 +00:00
parent cfe440b88c
commit fab8b787ff
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-06-20 Jason Rumney <jasonr@gnu.org>
* w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
(w32_free_bdf_font): Unmap memory not handle.
2007-06-20 Sam Steingold <sds@gnu.org>
* gmalloc.c (__morecore): Fix the declaration to comply with the

View file

@ -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;