(w32_BDF_to_x_font): Unmap memory when finished.
(w32_free_bdf_font): Unmap memory not handle.
This commit is contained in:
parent
cfe440b88c
commit
fab8b787ff
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue