ExprEngine; Fix crash
This commit is contained in:
parent
446e7c3c0e
commit
52d72b6ffc
|
@ -204,7 +204,7 @@ namespace {
|
||||||
for (std::map<nonneg int, ExprEngine::ValuePtr>::iterator it = memory.begin(); it != memory.end();) {
|
for (std::map<nonneg int, ExprEngine::ValuePtr>::iterator it = memory.begin(); it != memory.end();) {
|
||||||
unsigned int varid = it->first;
|
unsigned int varid = it->first;
|
||||||
const Variable *var = symbolDatabase->getVariableFromVarId(varid);
|
const Variable *var = symbolDatabase->getVariableFromVarId(varid);
|
||||||
if (var->isGlobal())
|
if (var && var->isGlobal())
|
||||||
it = memory.erase(it);
|
it = memory.erase(it);
|
||||||
else
|
else
|
||||||
++it;
|
++it;
|
||||||
|
|
Loading…
Reference in New Issue