[directwrite] Fix build
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 13m20s
arm / arm-none-eabi (push) Has been cancelled
configs-ci / build (push) Has been cancelled
fontations / build (push) Has been cancelled
linux-ci / build (push) Has been cancelled
macos-ci / build (push) Has been cancelled
msys2 / CLANG64 (push) Has been cancelled
msys2 / MINGW32 (push) Has been cancelled
msys2 / MINGW64 (push) Has been cancelled
msvc / msvc-2019-amd64 (push) Has been cancelled
msvc / msvc-2019-x86 (push) Has been cancelled

This commit is contained in:
Behdad Esfahbod 2025-04-08 02:11:11 -06:00
parent 6b0124284b
commit 5f80cc1600

View file

@ -63,13 +63,13 @@ public:
uint64_t RegisterFontFileStream (IDWriteFontFileStream *fontFileStream)
{
fontFileStream->AddRef ();
auto lock = hb_lock_t (mutex);
hb_lock_t lock {mutex};
mFontStreams.set (mNextFontFileKey, fontFileStream);
return mNextFontFileKey++;
}
void UnregisterFontFileStream (uint64_t fontFileKey)
{
auto lock = hb_lock_t (mutex);
hb_lock_t lock {mutex};
IDWriteFontFileStream *stream = mFontStreams.get (fontFileKey);
if (stream)
{