Skip to content

Commit

Permalink
fix memory leak related to scriptlet injection through StreamFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 20, 2018
1 parent aadcfcd commit c5cbf5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/chromium/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,

"name": "uBlock Origin",
"version": "1.15.6",
"version": "1.15.8",

"commands": {
"launch-element-zapper": {
Expand Down
5 changes: 4 additions & 1 deletion src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,10 @@ var filterDocument = (function() {
// confirmed, there is nothing which can be done uBO-side to reduce
// overhead.
if ( filterer.buffer === null ) {
if ( streamJobDone(filterer, ev.data) ) { return; }
if ( streamJobDone(filterer, ev.data) ) {
filterers.delete(this);
return;
}
filterer.buffer = new Uint8Array(ev.data);
return;
}
Expand Down

0 comments on commit c5cbf5d

Please sign in to comment.