Commit 76e4973a authored by Jason Rumney's avatar Jason Rumney
Browse files

(w32_BDF_to_x_font): Unmap memory when finished.

(w32_free_bdf_font): Unmap memory not handle.
parent 5fd6ff96
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 Juanma Barranquero <lekktu@gmail.com>
 
* w32.c (_wsa_errlist): Fix typo in error message.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment