Esme Povirk (@madewokherd) commented about dlls/gdiplus/tests/graphics.c:
return;
- memset(&bmihdr, 0, sizeof(bmihdr));
- bmihdr.biSize = sizeof(BITMAPINFOHEADER);
- bmihdr.biWidth = 10;
- bmihdr.biHeight = 10;
- bmihdr.biPlanes = 1;
- bmihdr.biBitCount = 32;
- bmihdr.biCompression = BI_RGB;
- status = GdipCreateBitmapFromGdiDib((BITMAPINFO*)&bmihdr, buff, &bm);
- expect(Ok, status);
- ok(NULL != bm, "Expected bitmap to be initialized\n");
- status = GdipCreateFromHDC(hdc, &graphics);
- expect(Ok, status);
- status = GdipCreateMatrix2(2.0, 0.0, 0.0, 1.0, 10.0, 20.0, &transform);
`transform` is never deleted.