diff options
-rw-r--r-- | engines/sherlock/image_file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp index 112655648a..5202401fdf 100644 --- a/engines/sherlock/image_file.cpp +++ b/engines/sherlock/image_file.cpp @@ -93,11 +93,11 @@ void ImageFile::load(Common::SeekableReadStream &stream, bool skipPalette, bool } // Load data for frame and decompress it - byte *data = new byte[frame._size + 4]; - stream.read(data, frame._size); - Common::fill(data + frame._size, data + frame._size + 4, 0); - frame.decompressFrame(data, IS_ROSE_TATTOO); - delete[] data; + byte *data1 = new byte[frame._size + 4]; + stream.read(data1, frame._size); + Common::fill(data1 + frame._size, data1 + frame._size + 4, 0); + frame.decompressFrame(data1, IS_ROSE_TATTOO); + delete[] data1; push_back(frame); } |