# HG changeset patch # User Jason Rumney # Date 1182374776 0 # Node ID 07295203c00a5893aecf5b32f0e9c971a5113c42 # Parent cac7f84f6e31672cf040bf06fc63de7cbc249c2c (w32_BDF_to_x_font): Unmap memory when finished. (w32_free_bdf_font): Unmap memory not handle. diff -r cac7f84f6e31 -r 07295203c00a src/w32bdf.c --- a/src/w32bdf.c Wed Jun 20 15:22:59 2007 +0000 +++ b/src/w32bdf.c Wed Jun 20 21:26:16 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;