[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Memory leak (Issue #642)

edoneel notifications at github.com
Fri Jun 24 16:32:05 UTC 2022


So - Sometime this spring between change 20981 and change 21617 there were changes made to the screen resolution code that changed how often, it seems, we call display_ioScreenScaleFactor.  Before it must have been rarely called like on startup and resize or whatever and now it is called often, sometimes many times per second.

The X11 code, being X11 code for Linux, has multiple ways of getting the screen scale factor.  Which path was followed depended on some things but on assorted Ubuntu systems the path followed called scale_Xftdpi_usable.  This called XrmGetStringDatabase every time it entered but if Xft.dpi was there then it returned without calling XrmDestroyDatabase.  Ergo the memory leaked.

The patch is trivial and attached

[PatchX11Scale.patch.txt](https://github.com/OpenSmalltalk/opensmalltalk-vm/files/8977689/PatchX11Scale.patch.txt)
..

-- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/642#issuecomment-1165739600
You are receiving this because you commented.

Message ID: <OpenSmalltalk/opensmalltalk-vm/issues/642/1165739600 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20220624/41eff545/attachment.html>


More information about the Vm-dev mailing list