https://bugs.winehq.org/show_bug.cgi?id=40810
--- Comment #28 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 54867 --> https://bugs.winehq.org/attachment.cgi?id=54867 patch2
Here is another patch which should be applied in addition to previous one.
Still, there is no guarantee that the GdipFree() hack should not be needed any longer, so please test with and without it.
Basically, these all are application bugs: it passes a freed pointer to GdipDrawString() in place of GpFont*, moreover, the freed poniter points to GpPen object, and not a GpFont.
Still, this application somehow survives under Windows. Perhaps a separate heap for gdiplus allocations may help (which patch2 implements).