Added a missing NULLing
svn-id: r39134
This commit is contained in:
parent
047f116515
commit
2017d1c9ea
1 changed files with 1 additions and 0 deletions
|
@ -306,6 +306,7 @@ int decompress1(Resource *result, Common::ReadStream &stream, int sci_version) {
|
||||||
if (stream.read(buffer, compressedLength) != compressedLength) {
|
if (stream.read(buffer, compressedLength) != compressedLength) {
|
||||||
free(result->data);
|
free(result->data);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
result->data = 0;
|
||||||
return SCI_ERROR_IO_ERROR;
|
return SCI_ERROR_IO_ERROR;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue