Skip to content

Plugin leaks memory due to using Project as a root disposable #6076

Open
@jacob314

Description

https://plugins.jetbrains.com/docs/intellij/disposers.html#the-disposer-singleton
"Even though Application and Project implement Disposable, they must NEVER be used as parent disposables in plugin code. Disposables registered using those objects as parents will not be disposed when the plugin is unloaded, leading to memory leaks."

We couple many disposables in the plugin to the project.
This will cause problems if we want to make the plugin reloadble without a restart and maybe other memory leaks.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions