mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 20:55:19 +00:00
TITANIC: Fix leak of vocab synonyms on exit
This commit is contained in:
parent
47f6c2e9b9
commit
d9eebaf787
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user