Skip to content

Commit b1a8b96

Browse files
committed
优化wasm内存释放
1 parent 60bf210 commit b1a8b96

File tree

10 files changed

+68
-31
lines changed

10 files changed

+68
-31
lines changed

demo/public/decoder.js

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/decoder.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/dist.zip

280 Bytes
Binary file not shown.

demo/public/jessibuca.js

Lines changed: 48 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/jessibuca.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist.zip

524 KB
Binary file not shown.

dist/decoder.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jessibuca.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jessibuca",
3-
"version": "3.3.21",
3+
"version": "3.3.22",
44
"scripts": {
55
"build": "npx cross-env NODE_ENV=production rollup -c",
66
"build:wasm": "python wasm/make.py --wasm && npm run build && npm run build:demo",

src/worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ Module.postRun = function () {
302302
clearInterval(this.stopId);
303303
this.stopId = null;
304304
audioDecoder.clear && audioDecoder.clear();
305+
audioDecoder.delete && audioDecoder.delete();
305306
videoDecoder.clear && videoDecoder.clear();
307+
videoDecoder.delete && videoDecoder.delete();
306308
wcsVideoDecoder.reset && wcsVideoDecoder.reset();
307309
this.firstTimestamp = null;
308310
this.startTimestamp = null;

0 commit comments

Comments
 (0)