1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-22 07:43:56 +02:00

Also release the BinaryContainer of the project

This commit is contained in:
Alain Magloire 2003-10-29 17:01:36 +00:00
parent b0182c5aa6
commit bbb5b11bcf

View file

@ -319,6 +319,17 @@ public class CModelManager implements IResourceChangeListener {
for (int i = 0; i < children.length; i++) { for (int i = 0; i < children.length; i++) {
releaseCElement(children[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);
}
}
} }
} }