mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Added more missing NULLing
svn-id: r39246
This commit is contained in:
parent
9068ae8424
commit
6ccb7bea5b
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user