https://bugs.winehq.org/show_bug.cgi?id=36132
Bug ID: 36132 Summary: valgrind shows some leaks in gdiplus/tests/graphics.c Product: Wine Version: 1.7.17 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: gdiplus Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
../../../tools/runtest -q -P wine -T ../../.. -M gdiplus.dll -p gdiplus_test.exe.so graphics && touch graphics.ok preloader: Warning: failed to reserve range 00110000-68000000 preloader: Warning: failed to reserve range 7f000000-82000000 fixme:gdiplus:GdipCreateBitmapFromGdiDib (0x4e2fbe4, 0x4e2fa54, 0x4e2fc0c) - partially implemented fixme:gdiplus:SOFTWARE_GdipDrawDriverString Ignoring flags 10 fixme:gdiplus:GdipGetNearestColor (0x4713ec0, (nil)): Passing color unmodified fixme:gdiplus:GdipGetNearestColor ((nil), 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x46f5d30, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x472cfe0, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x473efe0, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x47361d0, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x476bef8, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x4766fe8, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x4734530, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x4712e90, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x472fb48, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x472eec8, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x47333c8, 0x4e2fc2c): Passing color unmodified fixme:gdiplus:GdipGetNearestColor (0x46f5d30, 0x4e2fb48): Passing color unmodified fixme:gdiplus:GdipMeasureDriverString Ignoring flags 100 ==28082== 928 bytes in 8 blocks are definitely lost in loss record 862 of 988 ==28082== at 0x7BC4C735: notify_alloc (heap.c:255) ==28082== by 0x7BC50F79: RtlAllocateHeap (heap.c:1716) ==28082== by 0x4E5A551: GdipAlloc (gdiplus.c:142) ==28082== by 0x4E84835: GdipCreateBitmapFromScan0 (image.c:1828) ==28082== by 0x496B0D7: create_graphics (graphics.c:106) ==28082== by 0x4984109: test_transform (graphics.c:3709) ==28082== by 0x4994E78: func_graphics (graphics.c:5573) ==28082== by 0x49D96B0: run_test (test.h:584) ==28082== by 0x49D9A9F: main (test.h:654) ==28082==
==28082== 1,856 bytes in 16 blocks are definitely lost in loss record 902 of 988 ==28082== at 0x7BC4C735: notify_alloc (heap.c:255) ==28082== by 0x7BC50F79: RtlAllocateHeap (heap.c:1716) ==28082== by 0x4E5A551: GdipAlloc (gdiplus.c:142) ==28082== by 0x4E84835: GdipCreateBitmapFromScan0 (image.c:1828) ==28082== by 0x496B0D7: create_graphics (graphics.c:106) ==28082== by 0x4982CAD: test_GdipMeasureString (graphics.c:3522) ==28082== by 0x4994E7D: func_graphics (graphics.c:5574) ==28082== by 0x49D96B0: run_test (test.h:584) ==28082== by 0x49D9A9F: main (test.h:654) ==28082==
==28082== 7,424 bytes in 64 blocks are definitely lost in loss record 970 of 988 ==28082== at 0x7BC4C735: notify_alloc (heap.c:255) ==28082== by 0x7BC50F79: RtlAllocateHeap (heap.c:1716) ==28082== by 0x4E5A551: GdipAlloc (gdiplus.c:142) ==28082== by 0x4E84835: GdipCreateBitmapFromScan0 (image.c:1828) ==28082== by 0x496B0D7: create_graphics (graphics.c:106) ==28082== by 0x49836B7: test_GdipMeasureString (graphics.c:3597) ==28082== by 0x4994E7D: func_graphics (graphics.c:5574) ==28082== by 0x49D96B0: run_test (test.h:584) ==28082== by 0x49D9A9F: main (test.h:654) ==28082==
http://bugs.winehq.org/show_bug.cgi?id=36132
--- Comment #1 from Vincent Povirk madewokherd@gmail.com --- Once again, this is intentional, see the comment here: http://source.winehq.org/source/dlls/gdiplus/tests/graphics.c#L118
But I'm not convinced that it's necessary.
https://bugs.winehq.org/show_bug.cgi?id=36132
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |efc1d791a38aca1d5bb0095e9bb | |cef3c4becc934 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/efc1d791a38aca1d5bb0095e9b..., thanks.
https://bugs.winehq.org/show_bug.cgi?id=36132
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.18.