Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Nov 4, 2023
1 parent 813543f commit ffa99ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions binding/web/src/porcupine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ export class Porcupine {
* Releases resources acquired by WebAssembly module.
*/
public async release(): Promise<void> {
await this._pvFree(this._messageStackAddressAddressAddress);
await this._pvFree(this._messageStackDepthAddress);
await this._pvFree(this._inputBufferAddress);
await this._pvFree(this._keywordIndexAddress);
await this._pvPorcupineDelete(this._objectAddress);
Expand Down

0 comments on commit ffa99ae

Please sign in to comment.