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:
parent
e87a867fe3
commit
ec37c8b82d
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue