From f428eaef29a37be8fad1d9b42e9277c0d11bb31e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 19 Oct 2026 15:37:39 -0600 Subject: [PATCH] [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 --- src/hb-wasm-api-face.hh | 1 + 1 file changed, 1 insertion(+) 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;