Skip to content

Commit

Permalink
Merge pull request #726 from Polymer/fix-memory-leak
Browse files Browse the repository at this point in the history
Clear share from ChildRunner to prevent memory leak. Fixes #579
  • Loading branch information
usergenic authored Jul 17, 2018
2 parents 3bef18f + f8b52c3 commit e68b2cb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ addons:
sauce_connect: true
language: node_js
node_js:
- node
- '6'
- '8'
script:
- xvfb-run npm test
env:
Expand Down
1 change: 1 addition & 0 deletions browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion browser.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions browser/childrunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export default class ChildRunner {
setTimeout(function() {
this.iframe.parentNode.removeChild(this.iframe);
this.iframe = null;
this.share = null;
}.bind(this), 1);
}

Expand Down
1 change: 1 addition & 0 deletions wct-browser-legacy/browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wct-browser-legacy/browser.js.map

Large diffs are not rendered by default.

0 comments on commit e68b2cb

Please sign in to comment.