Community
Participate
Working Groups
public CodeReaderCache(int size) { cache = new CodeReaderLRUCache(size * MB_TO_KB_FACTOR); if (ResourcesPlugin.getWorkspace() != null) ResourcesPlugin.getWorkspace().addResourceChangeListener(new UpdateCodeReaderCacheListener(this)); } UpdatedCodeReaderCacheListener is not saved as a member. Thus, when the cache is garbage collected it is not garbage collected. You need to add a finalize() method which removes the listener from the workspace.
Created attachment 24906 [details] fix for this PR Take a look at this when you get a minute.
Looks great! Applied. Thanks!