video: dispose on destroy

pull/221/head
Varun Patil 2022-11-08 21:41:39 -08:00
parent 72806281bf
commit 99ec1a50cc
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ class VideoContentSetup {
content._videoPosterImg.onload = content._videoPosterImg.onerror = null;
content._videoPosterImg = null;
}
if (content.videojs) {
content.videojs.dispose();
content.videojs = null;
}
}
}