Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -143,16 +143,21 @@ |
for (let i = 0; i < FilterStorage.subscriptions.length; i++) |
{ |
if (FilterStorage.subscriptions[i].url == subscription.url) |
{ |
removeSubscriptionFilters(subscription); |
FilterStorage.subscriptions.splice(i--, 1); |
FilterStorage.knownSubscriptions.delete(subscription.url); |
+ |
+ // This should be the last remaining reference to the Subscription |
+ // object. |
+ Subscription.knownSubscriptions.delete(subscription.url); |
+ |
FilterNotifier.triggerListeners("subscription.removed", subscription); |
return; |
} |
} |
}, |
/** |
* Moves a subscription in the list to a new position. |