Index: lib/subscriptionClasses.js |
=================================================================== |
--- a/lib/subscriptionClasses.js |
+++ b/lib/subscriptionClasses.js |
@@ -147,16 +147,24 @@ |
}, |
serializeFilters(buffer) |
{ |
for (let filter of this.filters) |
buffer.push(filter.text.replace(/\[/g, "\\[")); |
}, |
+ /** |
+ * Releases any internal references to the object. |
+ */ |
+ free() |
+ { |
+ Subscription.knownSubscriptions.delete(this.url); |
+ }, |
+ |
toString() |
{ |
let buffer = []; |
this.serialize(buffer); |
return buffer.join("\n"); |
} |
}; |