mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:30:35 +02:00
fix heap use after free
This commit is contained in:
parent
b5f6d9d3d8
commit
a8a0671d6c
1 changed files with 1 additions and 1 deletions
|
@ -41,8 +41,8 @@ void PickManager::removePick(unsigned int uid) {
|
||||||
auto type = _typeMap.find(uid);
|
auto type = _typeMap.find(uid);
|
||||||
if (type != _typeMap.end()) {
|
if (type != _typeMap.end()) {
|
||||||
_picks[type->second].erase(uid);
|
_picks[type->second].erase(uid);
|
||||||
_typeMap.erase(uid);
|
|
||||||
_totalPickCounts[type->second]--;
|
_totalPickCounts[type->second]--;
|
||||||
|
_typeMap.erase(uid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue