# HG changeset patch # User Jason Rumney # Date 1182375109 0 # Node ID 269277f4e9167abfba45ba5c74e9b749582c6c6c # Parent f5538958a28aa2d9a44b455fb5c1d1bd889c4c27 (w32_BDF_to_x_font): Unmap memory when finished. (w32_free_bdf_font): Unmap memory not handle. diff -r f5538958a28a -r 269277f4e916 src/w32bdf.c --- a/src/w32bdf.c Wed Jun 20 19:38:39 2007 +0000 +++ b/src/w32bdf.c Wed Jun 20 21:31:49 2007 +0000 @@ -302,7 +302,7 @@ font_char *pch; cache_bitmap *pcb; - UnmapViewOfFile(fontp->hfilemap); + UnmapViewOfFile(fontp->font); CloseHandle(fontp->hfilemap); CloseHandle(fontp->hfile); @@ -867,6 +867,7 @@ retval = 1; } } + UnmapViewOfFile (font); CloseHandle (hfile); CloseHandle (hfilemap); return retval;