comparison src/w32bdf.c @ 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 e90d04cd455a
children 922696f363b0 988f1edc9674
comparison
equal deleted inserted replaced
81519:f5538958a28a 81520:269277f4e916
300 { 300 {
301 int i, j; 301 int i, j;
302 font_char *pch; 302 font_char *pch;
303 cache_bitmap *pcb; 303 cache_bitmap *pcb;
304 304
305 UnmapViewOfFile(fontp->hfilemap); 305 UnmapViewOfFile(fontp->font);
306 CloseHandle(fontp->hfilemap); 306 CloseHandle(fontp->hfilemap);
307 CloseHandle(fontp->hfile); 307 CloseHandle(fontp->hfile);
308 308
309 if (fontp->registry) xfree(fontp->registry); 309 if (fontp->registry) xfree(fontp->registry);
310 if (fontp->encoding) xfree(fontp->encoding); 310 if (fontp->encoding) xfree(fontp->encoding);
865 xstr[q-p-2] = '\0'; 865 xstr[q-p-2] = '\0';
866 866
867 retval = 1; 867 retval = 1;
868 } 868 }
869 } 869 }
870 UnmapViewOfFile (font);
870 CloseHandle (hfile); 871 CloseHandle (hfile);
871 CloseHandle (hfilemap); 872 CloseHandle (hfilemap);
872 return retval; 873 return retval;
873 } 874 }
874 875