aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-06-01 21:57:30 +0000
committerFilippos Karapetis2008-06-01 21:57:30 +0000
commit8a0abfb04560072edc4e444ddc0dcad8da19634e (patch)
tree1848c805f781b878c97c3a3944c5a711e2eed934
parentcb103cb9e2f620e436160dd9dda95aad7f397e93 (diff)
downloadscummvm-rg350-8a0abfb04560072edc4e444ddc0dcad8da19634e.tar.gz
scummvm-rg350-8a0abfb04560072edc4e444ddc0dcad8da19634e.tar.bz2
scummvm-rg350-8a0abfb04560072edc4e444ddc0dcad8da19634e.zip
Fix for crash that occurs in the unarj's fallback code - _uncompressedData is not allocated when ARJ files have not been opened
svn-id: r32480
-rw-r--r--common/unarj.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/unarj.cpp b/common/unarj.cpp
index 57673341f7..eb55e116ad 100644
--- a/common/unarj.cpp
+++ b/common/unarj.cpp
@@ -291,6 +291,7 @@ void ArjFile::close() {
if (_fallBack) {
_currArchive.close();
+ return;
} else {
delete _uncompressed;
}