Skip to content

Commit

Permalink
Fix: Destroy the right pointer in collectUnicodes
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou authored and behdad committed Apr 9, 2023
1 parent 126276b commit e56768b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function hbjs(instance) {
var unicodeSetPtr = exports.hb_set_create();
exports.hb_face_collect_unicodes(ptr, unicodeSetPtr);
var result = typedArrayFromSet(unicodeSetPtr, Uint32Array);
exports.hb_set_destroy(ptr);
exports.hb_set_destroy(unicodeSetPtr);
return result;
},
/**
Expand Down

0 comments on commit e56768b

Please sign in to comment.