[gfx] Guard against possible race via gfxFontEntry::GetFontTable.

This commit is contained in:
Moonchild 2025-08-19 22:05:22 +02:00 • committed by roytam1
commit 7cadc57d49
2 changed files with 10 additions and 5 deletions

View file

@ -265,7 +265,7 @@ public:
// unregisters the table from the font entry.
//
// Pass nullptr for aBuffer to indicate that the table is not present and
// nullptr will be returned. Also returns nullptr on OOM.
// nullptr will be returned.
hb_blob_t *ShareFontTableAndGetBlob(uint32_t aTag,
nsTArray<uint8_t>* aTable);