Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIRECTOR: Fix WinFont scaling memory leak when scaling fonts. #5136

Merged
merged 1 commit into from Jul 8, 2023

Conversation

hari01584
Copy link
Contributor

Memory leak happened because the scaled generated fonts were not being cached or saved anywhere, thus they were not being destructed and freed. Added logic to cache generated font in _winFontRegistry itself.

Leaks observed in trektech-win in first few frames itself.

Memory leak happened because the scaled generated fonts were not
being cached or saved anywhere, thus they were not being destructed
and freed. Added logic to cache generated font in _winFontRegistry
itself.

Leaks observed in `trektech-win` of director engine in first few frames itself.
@sev-
Copy link
Member

sev- commented Jul 8, 2023

Thanks!

@sev- sev- merged commit 9b6d9b0 into scummvm:master Jul 8, 2023
8 checks passed
@lephilousophe lephilousophe added the GSoC Part of a Google Summer of Code project label Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Part of a Google Summer of Code project
Projects
None yet
3 participants