Wolfgang Walter : wineps.drv: Fix freeing of not allocated memory in type42 .c.
Alexandre Julliard
julliard at winehq.org
Mon Dec 15 08:27:31 CST 2008
Module: wine
Branch: master
Commit: d4b72f3e10e9a433a90ff7c665842e93038ee10f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d4b72f3e10e9a433a90ff7c665842e93038ee10f
Author: Wolfgang Walter <wine at stwm.de>
Date: Mon Dec 15 10:57:13 2008 +0100
wineps.drv: Fix freeing of not allocated memory in type42.c.
---
dlls/wineps.drv/type42.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wineps.drv/type42.c b/dlls/wineps.drv/type42.c
index 172072e..23f626c 100644
--- a/dlls/wineps.drv/type42.c
+++ b/dlls/wineps.drv/type42.c
@@ -166,7 +166,7 @@ TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev, char *ps_name,
"currentdict end dup /FontName get exch definefont pop\n";
- t42 = HeapAlloc(GetProcessHeap(), 0, sizeof(*t42));
+ t42 = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*t42));
memcpy(t42->tables, tables_templ, sizeof(tables_templ));
t42->loca_tab = t42->glyf_tab = t42->head_tab = t42->hmtx_tab = -1;
t42->emsize = emsize;
More information about the wine-cvs
mailing list