gdiplus: Do not use GdipAlloc and GdipFree in internal functions.
Sebastian Lackner
sebastian at fds-team.de
Sun Oct 4 17:22:34 CDT 2015
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
For bug https://bugs.winehq.org/show_bug.cgi?id=32786. The app hooks GdipAlloc/
GdipFree and doesn't expect any function calls from gdiplus internals. To keep
the changes in this patch easy to review, no optimizations have been done. At
some places it is possible to replace heap_alloc_zero() -> heap_alloc(), but
I think its better to do that in a separate patch.
dlls/gdiplus/brush.c | 158 ++++++++++++++++++++--------------------
dlls/gdiplus/customlinecap.c | 30 +++----
dlls/gdiplus/font.c | 26 +++---
dlls/gdiplus/gdiplus.c | 10 +-
dlls/gdiplus/gdiplus_private.h | 11 ++
dlls/gdiplus/graphics.c | 160 ++++++++++++++++++++---------------------
dlls/gdiplus/graphicspath.c | 132 ++++++++++++++++-----------------
dlls/gdiplus/image.c | 126 ++++++++++++++++----------------
dlls/gdiplus/imageattributes.c | 12 +--
dlls/gdiplus/matrix.c | 18 ++--
dlls/gdiplus/metafile.c | 26 +++---
dlls/gdiplus/pathiterator.c | 12 +--
dlls/gdiplus/pen.c | 18 ++--
dlls/gdiplus/region.c | 68 ++++++++---------
dlls/gdiplus/stringformat.c | 26 +++---
15 files changed, 422 insertions(+), 411 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001.diff
Type: text/x-patch
Size: 99682 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151005/9d4de8ef/attachment-0001.bin>
More information about the wine-patches
mailing list