diff --git a/src/helpers.ts b/src/helpers.ts index 02db097..4061c36 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -38,9 +38,7 @@ export function track( export function init(module: HarfBuzzModule) { Module = module; exports = Module.wasmExports; - freeFuncPtr = Module.addFunction((ptr: number) => { - exports.free(ptr); - }, "vi"); + freeFuncPtr = Module.addFunction(exports.free, "vi"); } export function hb_tag(s: string): number {