1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

code review: cleanup cosmetic filtering engine on shutdown

This commit is contained in:
gorhill 2016-03-04 20:25:35 -05:00
parent 2914c36c0b
commit 324c26b20c
2 changed files with 5 additions and 0 deletions

View File

@ -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]

View File

@ -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();