[wasm] Release blob reference in face_create

hb_face_create() takes its own reference on the blob, so the one
returned by hb_blob_create() was never released.

Tested: meson test passes on a -Dwasm=enabled build; a wasm module
calling face_create on a valid blob shapes fine under valgrind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 5.5 committed 2026-10-19 15:40:59 -06:00
1 parent a71aa86c2b
commit f428eaef29
1 file changed
+1
+1
View File
@@ -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;