Commit fc0ee191 authored by Jonathan Kew's avatar Jonathan Kew Committed by ma1
Browse files

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

parent 88affd4a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
  }