Skip to content

Potential Memory Leak due to Unremoved IPC Listeners #11

@Imran-imtiaz48

Description

@Imran-imtiaz48

The setMenus() method registers new IPC listeners every time it is called, but it only removes the old ones if this.commands is already defined. If setMenus() is called repeatedly with new commands or if removeAllMenus() is not triggered properly, old listeners may remain attached to ipcRenderer, leading to duplicated event handling and memory leaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions