aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/decompress11.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-03-08 22:44:47 +0000
committerSven Hesse2009-03-08 22:44:47 +0000
commit6ccb7bea5b1ec48b4a212ff94464d687f9730b08 (patch)
tree71a5509e6730cb32fa586bc3a2766de70449afa6 /engines/sci/scicore/decompress11.cpp
parent9068ae84246eae5b4915d18ca88fc23308a64875 (diff)
downloadscummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.tar.gz
scummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.tar.bz2
scummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.zip
Added more missing NULLing
svn-id: r39246
Diffstat (limited to 'engines/sci/scicore/decompress11.cpp')
-rw-r--r--engines/sci/scicore/decompress11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/scicore/decompress11.cpp b/engines/sci/scicore/decompress11.cpp
index 6d975669c3..114f965f64 100644
--- a/engines/sci/scicore/decompress11.cpp
+++ b/engines/sci/scicore/decompress11.cpp
@@ -74,6 +74,7 @@ int decompress11(Resource *result, Common::ReadStream &stream, int sci_version)
if (stream.read(buffer, compressedLength) != compressedLength) {
free(result->data);
free(buffer);
+ result->data = 0;
return SCI_ERROR_IO_ERROR;
};