You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Properly dispose font in FontRegistry upon display disposal
When retrieving a font from a FontRegistry instance that is not cached
in the registry yet, it will be created on the current display. In order
to dispose the fonts of a display upon the display's disposal, the
FontRegistry registers a dispose hook at the display instance. The
current implementation only does this for the first display that is
instantiated. For every further display, which may be created on Windows
systems, no hook is added. Thus, if an additional display is disposed,
its fonts remain in the FontRegistry, referring to a disposed display.
This change improved the FontRegistry implementation to properly
register a dispose hook to every display for which it contains fonts. It
also adds an according regression test.
0 commit comments