<p></p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">The patch is trivial and attached</p>
<p dir="auto"><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/files/8977689/PatchX11Scale.patch.txt">PatchX11Scale.patch.txt</a><br>
.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/642#issuecomment-1165739600">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3UKBF34OYOSQUONX3VQXPILANCNFSM5ZG6PKXA">unsubscribe</a>.<br />You are receiving this because you commented.<img src="https://github.com/notifications/beacon/AIJPEW3D3QP3FEAX5UNUM23VQXPILA5CNFSM5ZG6PKXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIV54MUA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><OpenSmalltalk/opensmalltalk-vm/issues/642/1165739600</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/642#issuecomment-1165739600",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/642#issuecomment-1165739600",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>