Skip to content
Snippets Groups Projects
Verified Commit a1c42a49 authored by Jonathan Kew's avatar Jonathan Kew Committed by Pier Angelo Vendrame
Browse files

Bug 1893891 - Clear mSharedBlobData if blob creation failed. a=dmeehan

parent 8eec059d
No related branches found
No related tags found
1 merge request!1037Bug 42614: Rebased onto 115.12
......@@ -477,8 +477,9 @@ hb_blob_t* gfxFontEntry::FontTableHashEntry::ShareTableAndGetBlob(
HB_MEMORY_MODE_READONLY, 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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment