From 552cd74b08a7bf72282b872f67abdde7bf3f540e Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 21 May 2024 13:19:48 +0200 Subject: [PATCH] [gfx] Clear mSharedBlobData if blob creation failed. --- gfx/thebes/gfxFontEntry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/thebes/gfxFontEntry.cpp b/gfx/thebes/gfxFontEntry.cpp index 765332aef5..ac841a550c 100644 --- a/gfx/thebes/gfxFontEntry.cpp +++ b/gfx/thebes/gfxFontEntry.cpp @@ -520,8 +520,9 @@ ShareTableAndGetBlob(nsTArray&& aTable, mSharedBlobData, DeleteFontTableBlobData); if (mBlob == hb_blob_get_empty() ) { // The FontTableBlobData was destroyed during hb_blob_create(). - // The (empty) blob is still be held in the hashtable with a strong + // The (empty) blob will still be held in the hashtable with a strong // reference. + mSharedBlobData = nullptr; return hb_blob_reference(mBlob); }