mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[gfx] Clear mSharedBlobData if blob creation failed.
This commit is contained in:
parent
f3413e94b9
commit
552cd74b08
1 changed files with 2 additions and 1 deletions
|
|
@ -520,8 +520,9 @@ ShareTableAndGetBlob(nsTArray<uint8_t>&& 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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue