Browse Source

closed last memory leak...

tempestpy_adaptions
gereon 12 years ago
parent
commit
8f4f39d510
  1. 6
      src/adapters/ExplicitModelAdapter.h

6
src/adapters/ExplicitModelAdapter.h

@ -424,12 +424,8 @@ private:
stateIndexToProbabilityMap[targetIndex] = it.second; stateIndexToProbabilityMap[targetIndex] = it.second;
} else { } else {
stateIndexToProbabilityMap[targetIndex] += it.second; stateIndexToProbabilityMap[targetIndex] += it.second;
deleteQueue.push(it.first);
}
} }
while (!deleteQueue.empty()) {
delete deleteQueue.front();
deleteQueue.pop();
delete it.first;
} }
} }
for (auto targetIndex : stateIndexToProbabilityMap) { for (auto targetIndex : stateIndexToProbabilityMap) {

Loading…
Cancel
Save