TITANIC: Fix leak of vocab synonyms on exit

This commit is contained in:
Paul Gilbert 2017-09-24 12:26:43 -04:00
parent 47f6c2e9b9
commit d9eebaf787

View File

@ -58,9 +58,10 @@ void TTnode::deleteSiblings() {
_priorP->_nextP = nullptr;
// Iterate through the linked chain of nodes, deleting each in turn
for (TTnode *curP = _nextP, *nextP = nullptr; nextP; curP = nextP) {
nextP = curP->_nextP;
delete curP;
while (_nextP) {
TTnode *next = _nextP;
_nextP = next->_nextP;
delete next;
}
}