From 8eb1f25ee45792e1220f0a17eace53518a15d0cd Mon Sep 17 00:00:00 2001 From: Andrew S Date: Thu, 21 Dec 2023 00:34:08 -0500 Subject: [PATCH] V1.2.15 --- chrome/manifest.json | 2 +- chrome/player/FastStreamClient.mjs | 4 ++++ chrome/player/modules/SecureMemory.mjs | 5 +++++ package.json | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/chrome/manifest.json b/chrome/manifest.json index 7756b30f..40ee9c11 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -3,7 +3,7 @@ "default_locale": "en", "name": "__MSG_extension_name__", "description": "__MSG_extension_description__", - "version": "1.2.14", + "version": "1.2.15", "author": "Andrew S", "options_ui": { "page": "player/options/index.html", diff --git a/chrome/player/FastStreamClient.mjs b/chrome/player/FastStreamClient.mjs index 0cb79bee..da1689c0 100644 --- a/chrome/player/FastStreamClient.mjs +++ b/chrome/player/FastStreamClient.mjs @@ -133,6 +133,10 @@ export class FastStreamClient extends EventEmitter { this.downloadManager.destroy(); this.videoAnalyzer.destroy(); this.interfaceController.destroy(); + if (this.progressMemory) { + this.progressMemory.destroy(); + this.progressMemory = null; + } } setOptions(options) { diff --git a/chrome/player/modules/SecureMemory.mjs b/chrome/player/modules/SecureMemory.mjs index a14c57ea..ef0bd229 100644 --- a/chrome/player/modules/SecureMemory.mjs +++ b/chrome/player/modules/SecureMemory.mjs @@ -171,4 +171,9 @@ export class SecureMemory { }; }); } + + destroy() { + this.indexedDbManager.close(); + this.indexedDbManager = null; + } } diff --git a/package.json b/package.json index b668c510..765725c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "faststream", - "version": "1.2.14", + "version": "1.2.15", "description": "Stream without buffering", "scripts": { "test": "echo \"Error: no test specified\" && exit 1",