gdiplus: Do not use GdipAlloc and GdipFree in internal functions.

Vincent Povirk madewokherd at gmail.com
Fri Oct 9 14:00:47 CDT 2015


Signed-off-by: Vincent Povirk <vincent at codeweavers.com>

On Sun, Oct 4, 2015 at 5:22 PM, Sebastian Lackner <sebastian at fds-team.de> wrote:
> 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(-)
>
>
>
>



More information about the wine-patches mailing list