[Bug 22256] Miranda runs out of GDI object handles and crashes

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 30 22:01:58 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=22256

Dmitry Timoshkov <dmitry at baikal.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Fixed by SHA1|                            |e2264859c8f8837b808e2ef9ce1
                   |                            |dc0fe6b571e0c
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #38 from Dmitry Timoshkov <dmitry at 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/e2264859c8f8837b808e2ef9ce1dc0fe6b571e0c

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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list