Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually invalidate the FontCache before clearing ThreadGlobalData.
https://bugs.webkit.org/show_bug.cgi?id=248502 Reviewed by Cameron McCormack. Destructing the FontCache can recurse back into the ThreadGlobalData getter (to remove cached entries), so we want to manually clear the FontCache before clearing the ThreadGlobalData pointer. This also moves m_destroyed to earlier in the class, so it's guaranteed to be destructed after m_fontCache. * Source/WebCore/platform/ThreadGlobalData.cpp: (WebCore::ThreadGlobalData::destroy): * Source/WebCore/platform/ThreadGlobalData.h: * Source/WebCore/platform/graphics/FontCache.h: Canonical link: https://commits.webkit.org/257160@main
- Loading branch information
1 parent
e113b29
commit 2d8a920
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters