aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2017-03-06 16:53:41 +0100
committerWalter van Niftrik2017-03-06 17:01:26 +0100
commit8b9d9bcf84d233494a5b4cd4527d682286d6e8f2 (patch)
treed2df53ede1aa1237acec9ba7c54df2dbeda020ab /engines/adl
parent1f9f40cade9d65a9ea4ca0d7515468d62d210abe (diff)
downloadscummvm-rg350-8b9d9bcf84d233494a5b4cd4527d682286d6e8f2.tar.gz
scummvm-rg350-8b9d9bcf84d233494a5b4cd4527d682286d6e8f2.tar.bz2
scummvm-rg350-8b9d9bcf84d233494a5b4cd4527d682286d6e8f2.zip
ADL: Fix incorrect delete (CID 1371758)
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/hires4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/adl/hires4.cpp b/engines/adl/hires4.cpp
index 5f9b2790bb..a76b42471e 100644
--- a/engines/adl/hires4.cpp
+++ b/engines/adl/hires4.cpp
@@ -212,14 +212,14 @@ void HiRes4Engine::runIntroLogo(Common::SeekableReadStream &ms2) {
_display->updateHiResScreen();
if (shouldQuit()) {
- delete logo;
+ delete[] logo;
return;
}
delay(7);
}
- delete logo;
+ delete[] logo;
for (uint i = 38; i != 0; --i) {
Common::Point p;