Fix memory leak in BasicSourceLineResolver::UnloadModule

R=nealsid at http://breakpad.appspot.com/179001/show

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@674 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek 2010-08-27 13:32:19 +00:00
parent 662b6da59d
commit 513083b598

View File

@ -262,7 +262,9 @@ void BasicSourceLineResolver::UnloadModule(const CodeModule *module)
ModuleMap::iterator iter = modules_->find(module->code_file()); ModuleMap::iterator iter = modules_->find(module->code_file());
if (iter != modules_->end()) { if (iter != modules_->end()) {
Module *basic_module = iter->second;
modules_->erase(iter); modules_->erase(iter);
delete basic_module;
} }
} }