diff --git a/src/hb-wasm-api-face.hh b/src/hb-wasm-api-face.hh index e48a1d761..12748f1f7 100644 --- a/src/hb-wasm-api-face.hh +++ b/src/hb-wasm-api-face.hh @@ -51,6 +51,7 @@ HB_WASM_API (ptr_t(face_t), face_create) (HB_WASM_EXEC_ENV NULL); hb_face_t *face = hb_face_create(hb_blob, index); + hb_blob_destroy (hb_blob); HB_OBJ2REF (face); return faceref;