FileAnalysis: fix access of invalidated std::map iterator.

This commit is contained in:
Jon Siwek 2013-03-26 15:52:12 -05:00
parent 497496ec83
commit 621fe51c82
2 changed files with 4 additions and 3 deletions

View file

@ -303,8 +303,8 @@ bool Manager::RemoveFile(const string& unique)
reporter->Error("No mapping for fileID %s", id.c_str());
ignored.erase(unique);
str_map.erase(unique);
delete it->second;
str_map.erase(unique);
return true;
}