mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't hold components after project/module is disposed to reduce memory usage if it's leaked
This commit is contained in:
@@ -157,6 +157,7 @@ public abstract class ComponentManagerImpl extends UserDataHolderBase implements
|
||||
LOG.error(e);
|
||||
}
|
||||
}
|
||||
myBaseComponents.clear();
|
||||
|
||||
myComponentConfigCount = -1;
|
||||
}
|
||||
@@ -313,6 +314,10 @@ public abstract class ComponentManagerImpl extends UserDataHolderBase implements
|
||||
}
|
||||
|
||||
myPicoContainer = null;
|
||||
//noinspection SynchronizeOnThis
|
||||
synchronized (this) {
|
||||
myNameToComponent.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user