mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
code review: cleanup cosmetic filtering engine on shutdown
This commit is contained in:
parent
2914c36c0b
commit
324c26b20c
2 changed files with 5 additions and 0 deletions
|
|
@ -639,6 +639,10 @@ FilterContainer.prototype.reset = function() {
|
|||
|
||||
this.selectorCache = {};
|
||||
this.selectorCacheCount = 0;
|
||||
if ( this.selectorCacheTimer !== null ) {
|
||||
clearTimeout(this.selectorCacheTimer);
|
||||
this.selectorCacheTimer = null;
|
||||
}
|
||||
|
||||
// permanent
|
||||
// [class], [id]
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ vAPI.app.onShutdown = function() {
|
|||
µb.staticFilteringReverseLookup.shutdown();
|
||||
µb.assetUpdater.shutdown();
|
||||
µb.staticNetFilteringEngine.reset();
|
||||
µb.cosmeticFilteringEngine.reset();
|
||||
µb.sessionFirewall.reset();
|
||||
µb.permanentFirewall.reset();
|
||||
µb.permanentFirewall.reset();
|
||||
|
|
|
|||
Loading…
Reference in a new issue