1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

When releasing cProjects also release

the binarycontainers.
This commit is contained in:
Alain Magloire 2003-10-29 16:56:47 +00:00
parent e87a867fe3
commit ec37c8b82d

View file

@ -319,6 +319,17 @@ public class CModelManager implements IResourceChangeListener {
for (int i = 0; i < children.length; i++) {
releaseCElement(children[i]);
}
// Make sure we destroy the BinaryContainer and ArchiveContainer
// Since they are not part of the children.
if (info instanceof CProjectInfo) {
CProjectInfo pinfo = (CProjectInfo) info;
if (pinfo.vBin != null) {
releaseCElement(pinfo.vBin);
}
if (pinfo.vLib != null) {
releaseCElement(pinfo.vLib);
}
}
}
}