changeset 78033:07295203c00a

(w32_BDF_to_x_font): Unmap memory when finished. (w32_free_bdf_font): Unmap memory not handle.
author Jason Rumney <jasonr@gnu.org>
date Wed, 20 Jun 2007 21:26:16 +0000
parents cac7f84f6e31
children 30a0d0f53b44
files src/w32bdf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;