mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[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:
1 parent
a71aa86c2b
commit
f428eaef29
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user