changeset 81520:269277f4e916

(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:31:49 +0000
parents f5538958a28a
children 43e4a77d35aa
files src/w32bdf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;