Skip to content

Memory leak: Event listeners not removing #97

Closed
jellyfin/JavascriptSubtitlesOctopus
#37
@cawa-93

Description

@cawa-93

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.
зображення
зображення

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions