mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix memory leak related to scriptlet injection through StreamFilter
This commit is contained in:
parent
aadcfcdaf3
commit
c5cbf5db47
2 changed files with 5 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
|
||||
"name": "uBlock Origin",
|
||||
"version": "1.15.6",
|
||||
"version": "1.15.8",
|
||||
|
||||
"commands": {
|
||||
"launch-element-zapper": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue