[Scummvm-git-logs] scummvm master -> d9eebaf787cb1e4e643d0d4704617d82a94acbcc
dreammaster
dreammaster at scummvm.org
Sun Sep 24 18:26:51 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d9eebaf787 TITANIC: Fix leak of vocab synonyms on exit
Commit: d9eebaf787cb1e4e643d0d4704617d82a94acbcc
https://github.com/scummvm/scummvm/commit/d9eebaf787cb1e4e643d0d4704617d82a94acbcc
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-09-24T12:26:43-04:00
Commit Message:
TITANIC: Fix leak of vocab synonyms on exit
Changed paths:
engines/titanic/true_talk/tt_node.cpp
diff --git a/engines/titanic/true_talk/tt_node.cpp b/engines/titanic/true_talk/tt_node.cpp
index fece3b8..565c466 100644
--- a/engines/titanic/true_talk/tt_node.cpp
+++ b/engines/titanic/true_talk/tt_node.cpp
@@ -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;
}
}
More information about the Scummvm-git-logs
mailing list