From: Jason Rumney Date: Wed, 20 Jun 2007 21:32:32 +0000 (+0000) Subject: (w32_BDF_to_x_font): Unmap memory when finished. X-Git-Tag: emacs-pretest-23.0.90~12186 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fab8b787ff048bddd6c0c91b23d40e34482c76b1;p=emacs.git (w32_BDF_to_x_font): Unmap memory when finished. (w32_free_bdf_font): Unmap memory not handle. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5861f7e6043..3707ba5d82a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-06-20 Jason Rumney + + * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished. + (w32_free_bdf_font): Unmap memory not handle. + 2007-06-20 Sam Steingold * gmalloc.c (__morecore): Fix the declaration to comply with the diff --git a/src/w32bdf.c b/src/w32bdf.c index 64ec2f7a3b0..40e705a18c9 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c @@ -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;