gdiplus: GdipCreatePen2 should make a copy of the brush.

Huw Davies huw at
Thu Jun 19 06:16:20 CDT 2008

Fixes Valgrind warning:

 Invalid free() / delete / delete[]
    at  notify_free (heap.c:199)
    by  RtlFreeHeap (heap.c:1284)
    by  GdipFree (gdiplus.c:122)
    by  GdipDeleteBrush (brush.c:463)
    by  test_constructor_destructor2 (pen.c:108)
    by  func_pen (pen.c:244)
    by  run_test (test.h:449)
    by  main (test.h:498)
 dlls/gdiplus/pen.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 586832574856d007805e1cd879be1c663b0f45bd.diff
Type: text/x-patch
Size: 1327 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list