You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After init, the JSO creates many event listeners, and none of them is removed even if i call instance.dispose();
This is very noticeable especially if you work with SPA: even when you go to another "page", and the target video element was removed from DOM, event listeners continue to work.
I think this is what leads to a constant memory leak: None of the created instances of the class can be destroyed by the garbage collector.
The text was updated successfully, but these errors were encountered:
cawa-93
changed the title
Event listeners not removed
Memory leak: Event listeners not removing
May 15, 2021
After init, the JSO creates many event listeners, and none of them is removed even if i call
instance.dispose();
This is very noticeable especially if you work with SPA: even when you go to another "page", and the target video element was removed from DOM, event listeners continue to work.
I think this is what leads to a constant memory leak: None of the created instances of the class can be destroyed by the garbage collector.


The text was updated successfully, but these errors were encountered: