From 75500e4df2e6e5c25e93890e13650e0ad1a62cc5 Mon Sep 17 00:00:00 2001 From: Tomohiro IKEDA Date: Thu, 14 Mar 2019 23:23:14 +0900 Subject: [PATCH] Fixed error on destroying the instance of `Hls` (#2177) --- src/controller/fragment-tracker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/fragment-tracker.js b/src/controller/fragment-tracker.js index 6d099f32831..e614701fb74 100644 --- a/src/controller/fragment-tracker.js +++ b/src/controller/fragment-tracker.js @@ -25,8 +25,8 @@ export class FragmentTracker extends EventHandler { } destroy () { - this.fragments = null; - this.timeRanges = null; + this.fragments = Object.create(null); + this.timeRanges = Object.create(null); this.config = null; EventHandler.prototype.destroy.call(this); super.destroy();