]> code.delx.au - gnu-emacs/commitdiff
(w32_BDF_to_x_font): Unmap memory when finished.
authorJason Rumney <jasonr@gnu.org>
Wed, 20 Jun 2007 21:32:32 +0000 (21:32 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 20 Jun 2007 21:32:32 +0000 (21:32 +0000)
(w32_free_bdf_font): Unmap memory not handle.

src/ChangeLog
src/w32bdf.c

index 5861f7e60435f3cde4554914a4a1ca77a984bbf3..3707ba5d82ab30c016e0810f0fb1d2c559ef383b 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-20  Jason Rumney  <jasonr@gnu.org>
+
+       * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
+       (w32_free_bdf_font): Unmap memory not handle.
+
 2007-06-20  Sam Steingold  <sds@gnu.org>
 
        * gmalloc.c (__morecore): Fix the declaration to comply with the
index 64ec2f7a3b0812b965fa324b75a62eb16d72d8f7..40e705a18c97932978bf530ac8c349a020896456 100644 (file)
@@ -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;