aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak2019-06-17 20:01:38 +0200
committerFilippos Karapetis2019-06-17 22:11:14 +0300
commite46d5efaea1479b16a8271f7bdb8c95d6368a813 (patch)
treeab49e92b407355402f113f765125a859871c974b /engines/sludge
parent373f0c91bec0bb5b3beba44159649a3b6003ffcd (diff)
downloadscummvm-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.cpp2
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);
}
}
}