gdi32: Always consume the subst structure.
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Wed Apr 5 06:43:12 CDT 2006
Huw Davies <huw at codeweavers.com>
gdi32: Always consume the subst structure.
--
Huw Davies
huw at codeweavers.com
---
dlls/gdi/freetype.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
961d69a91c1f4a5e03291a7d486693697690a3f2
diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c
index 08902e1..60fb0f3 100644
--- a/dlls/gdi/freetype.c
+++ b/dlls/gdi/freetype.c
@@ -566,6 +566,9 @@ static BOOL add_font_subst(struct list *
return TRUE;
}
+ HeapFree(GetProcessHeap(), 0, subst->from.name);
+ HeapFree(GetProcessHeap(), 0, subst->to.name);
+ HeapFree(GetProcessHeap(), 0, subst);
return FALSE;
}
--
1.2.4
More information about the wine-patches
mailing list