diff options
author | Sven Hesse | 2009-03-08 22:44:47 +0000 |
---|---|---|
committer | Sven Hesse | 2009-03-08 22:44:47 +0000 |
commit | 6ccb7bea5b1ec48b4a212ff94464d687f9730b08 (patch) | |
tree | 71a5509e6730cb32fa586bc3a2766de70449afa6 | |
parent | 9068ae84246eae5b4915d18ca88fc23308a64875 (diff) | |
download | scummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.tar.gz scummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.tar.bz2 scummvm-rg350-6ccb7bea5b1ec48b4a212ff94464d687f9730b08.zip |
Added more missing NULLing
svn-id: r39246
-rw-r--r-- | engines/sci/scicore/decompress0.cpp | 1 | ||||
-rw-r--r-- | engines/sci/scicore/decompress01.cpp | 1 | ||||
-rw-r--r-- | engines/sci/scicore/decompress11.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/scicore/decompress0.cpp b/engines/sci/scicore/decompress0.cpp index 6aaa6fc063..fda253b31e 100644 --- a/engines/sci/scicore/decompress0.cpp +++ b/engines/sci/scicore/decompress0.cpp @@ -275,6 +275,7 @@ int decompress0(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; }; diff --git a/engines/sci/scicore/decompress01.cpp b/engines/sci/scicore/decompress01.cpp index 4ef6d88abc..9cdb02f9cb 100644 --- a/engines/sci/scicore/decompress01.cpp +++ b/engines/sci/scicore/decompress01.cpp @@ -532,6 +532,7 @@ int decompress01(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; }; 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; }; |