Skip to content

Commit

Permalink
Fix WASM for kws (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Apr 12, 2024
1 parent be4a248 commit 0f4705f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wasm/kws/sherpa-onnx-kws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f4705f

Please sign in to comment.