Skip to content

Why the events listener were not removed #1930

Open
@Zen33

Description

@Zen33

Stage.ts:
EVENTS.forEach(([event, methodName]) => {
this.content.addEventListener(
event,
(evt) => {
thismethodName;
},
{ passive: false }
);
});

Image.ts:
this._loadListener = () => {
this._requestDraw();
}

The events listener in the two files above were not removed, leading to memory leaks. In the memory snapshot of DevTools, there are a large number of Detached V8EventHandler instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions