[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Fix gdi leak (PR #658)

Nicolas Cellier notifications at github.com
Mon Nov 14 14:23:51 UTC 2022


On some win32 configurations and/or with some specific image,
we observe a GDI leak : numbers of GDI objects rapidly grow up to 10,000 (about 50 new objects/second).
when the limit is reached, the image hangs and we have to kill it...

With those fixes, the number of GDI objects remains stable at 20.

You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658

-- Commit Summary --

  * Use appropriate function to destroy the currentCursor in Win32
  * Fixup potential GDI leak in getDpiSystem in win32

-- File Changes --

    M platforms/win32/vm/sqWin32Window.c (39)

-- Patch Links --

https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658.patch
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/658
You are receiving this because you are subscribed to this thread.

Message ID: <OpenSmalltalk/opensmalltalk-vm/pull/658 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20221114/063fb033/attachment.html>


More information about the Vm-dev mailing list