diff options
author | Sebastian Krzyszkowiak | 2019-06-17 20:01:38 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-06-17 22:11:14 +0300 |
commit | e46d5efaea1479b16a8271f7bdb8c95d6368a813 (patch) | |
tree | ab49e92b407355402f113f765125a859871c974b /engines/sludge | |
parent | 373f0c91bec0bb5b3beba44159649a3b6003ffcd (diff) | |
download | scummvm-rg350-e46d5efaea1479b16a8271f7bdb8c95d6368a813.tar.gz scummvm-rg350-e46d5efaea1479b16a8271f7bdb8c95d6368a813.tar.bz2 scummvm-rg350-e46d5efaea1479b16a8271f7bdb8c95d6368a813.zip |
SLUDGE: fix use-after-free in RegionManager::removeScreenRegion
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/region.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/region.cpp b/engines/sludge/region.cpp index 4410951057..062b3551dc 100644 --- a/engines/sludge/region.cpp +++ b/engines/sludge/region.cpp @@ -67,7 +67,7 @@ void RegionManager::removeScreenRegion(int objectNum) { _overRegion = nullptr; delete killMe; killMe = nullptr; - _allScreenRegions->reverse_erase(it); + it = _allScreenRegions->reverse_erase(it); } } } |