mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +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);
|
||||
if (type != _typeMap.end()) {
|
||||
_picks[type->second].erase(uid);
|
||||
_typeMap.erase(uid);
|
||||
_totalPickCounts[type->second]--;
|
||||
_typeMap.erase(uid);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue