http://bugs.winehq.org/show_bug.cgi?id=22256
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e2264859c8f8837b808e2ef9ce1 | |dc0fe6b571e0c Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #38 from Dmitry Timoshkov dmitry@baikal.ru 2012-01-30 22:01:58 CST --- (In reply to comment #37)
The commited patch was simpler than what Dmitry sent, I think a retest would be best before marking fixed.
http://source.winehq.org/git/wine.git/commit/e2264859c8f8837b808e2ef9ce1dc0f...
The leaks should be fixed by that version as well. DeleteDC() selects default bitmap into the being deleted DC, so DeleteObject(stgm.u.hBitmap) after it also works. It's not obvious without looking at the DeleteDC() internal implementaion, and somewhat convoluted, but it works same way as an explicit selection of an old (stock) bitmap.