dkandalov/pomodoro-tm — pull request #1 by BasLeijdekkers (2012-03-26 09:43:40+00:00)
Title: Memory leak

Earlier today I noticed that your pomodoro-tm plugin contained a memory leak. The plugin was hanging on to instances of the com.intellij.openapi.project.Project interface after the project was closed. This causes many megabytes of project data to remain in memory instead of being garbage collected. After opening a few projects the effect is very noticeable.

The leak was easy to fix, and I have done so for my own personal use. Perhaps you will find it useful also.

In general for IntelliJ IDEA plugins it is a bad idea to hang on to instances of Project except as a field in implementations of com.intellij.openapi.components.ProjectComponent.

Thanks for the plugin,
Bas