Skip to content
Snippets Groups Projects
Commit 6bfe8c88 authored by hjk's avatar hjk
Browse files

debugger: Fix memory cache cleanup for trk adapters.

Reviewed-by: Friedemann Kleint
Reviewed-by: Pawel Polanski
parent d89604bb
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,10 @@ Snapshot::Snapshot()
void Snapshot::reset()
{
for (Memory::Iterator it = memory.begin(); it != memory.end(); ++it) {
for (Memory::Iterator it = memory.begin(); it != memory.end(); ) {
if (isReadOnly(it.key())) {
MEMORY_DEBUG("KEEPING READ-ONLY RANGE" << it.key());
++it;
} else {
it = memory.erase(it);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment