fix heap use after free

This commit is contained in:
SamGondelman 2018-10-16 15:00:19 -07:00
parent b5f6d9d3d8
commit a8a0671d6c

View file

@ -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);
}
});
}