fixed memory leak

This commit is contained in:
caheckman 2020-01-13 16:59:41 -05:00
parent d66027e27a
commit a1c1898624

View file

@ -835,6 +835,8 @@ void MapState::reconcileDatatypes(void)
startDatatype = curDatatype; startDatatype = curDatatype;
if (curHint->compare(*newList.back()) != 0) if (curHint->compare(*newList.back()) != 0)
newList.push_back(curHint); // Keep the current hint if it is otherwise different newList.push_back(curHint); // Keep the current hint if it is otherwise different
else
delete curHint; // RangeHint is on the heap, so delete if we are not keeping it
} }
else { else {
while(startPos < newList.size()) { while(startPos < newList.size()) {