From 0f4705f775064da1711767e517eb49a5942d9506 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 12 Apr 2024 18:57:21 +0800 Subject: [PATCH] Fix WASM for kws (#758) --- wasm/kws/sherpa-onnx-kws.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wasm/kws/sherpa-onnx-kws.js b/wasm/kws/sherpa-onnx-kws.js index 936f2c908..22679dc5f 100644 --- a/wasm/kws/sherpa-onnx-kws.js +++ b/wasm/kws/sherpa-onnx-kws.js @@ -6,15 +6,15 @@ function freeConfig(config, Module) { } if ('transducer' in config) { - freeConfig(config.transducer); + freeConfig(config.transducer, Module); } if ('featConfig' in config) { - freeConfig(config.featConfig); + freeConfig(config.featConfig, Module); } if ('modelConfig' in config) { - freeConfig(config.modelConfig); + freeConfig(config.modelConfig, Module); } if ('keywordsBuffer' in config) {