Skip to content

Commit

Permalink
Free the original fontBuffer after subsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 14, 2021
1 parent 3e170cd commit 1170630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async function subsetFont(
// Clean up
exports.hb_blob_destroy(result);
exports.hb_face_destroy(subset);
exports.free(fontBuffer);

return await fontverter.convert(subsetFont, targetFormat, 'truetype');
}
Expand Down

0 comments on commit 1170630

Please sign in to comment.