Closed kaiwk closed 1 year ago
I think it's better for this to stay as it is. From what I've seen, creating CTFont
s from a CGFont
created from a CGDataProvider
creates a font descriptor that holds a reference to the CGDataProvider
and is put in a font descriptor cache. While, it's not technically a leak, it gives the appearance of leaking and cause large memory usage.
We fixed something similar in Firefox: https://phabricator.services.mozilla.com/D93518
Closing as per the comment above.
This reverts commit ec11b73c4801444dd3eabe9d334ec644d66fc5b3.
Sorry, but I think I made a mistake, actually the memory leaking was caused by https://github.com/servo/core-foundation-rs/commit/dc588497db727a3ba943aaecc83d2a07dc6d6b0a
cc @jrmuizel