Added more missing NULLing

svn-id: r39246
This commit is contained in:
Sven Hesse 2009-03-08 22:44:47 +00:00
parent 9068ae8424
commit 6ccb7bea5b
3 changed files with 3 additions and 0 deletions

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};