don't hold components after project/module is disposed to reduce memory usage if it's leaked

This commit is contained in:
peter
2015-11-12 14:00:01 +01:00
parent e7d26bb121
commit 8f1bccd442
@@ -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