Esme Povirk (@madewokherd) commented about dlls/gdiplus/tests/font.c:
+ (td[i].char_set == ANSI_CHARSET && lf.lfCharSet == GetTextCharset(hdc)), + "got %#x\n", lf.lfCharSet); + expect(0, lf.lfOutPrecision); + expect(0, lf.lfClipPrecision); + expect(0, lf.lfQuality); + expect(0, lf.lfPitchAndFamily); + } + + GdipDeleteFont(font); + GdipDeleteFontFamily(fontfamily); + + winetest_pop_context(); + } + + GdipDeleteGraphics(graphics); + ReleaseDC(0, hdc); `CreateCompatibleDC` should be paired with `DeleteDC`. `ReleaseDC` is for user32-managed device contexts (`GetDC` and related functions).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3866#note_45652