Added a missing NULLing

svn-id: r39134
This commit is contained in:
Sven Hesse 2009-03-05 19:43:12 +00:00
parent 047f116515
commit 2017d1c9ea

View File

@ -306,6 +306,7 @@ int decompress1(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;
};