From 19e3e229b60395e126827db78833bbad0c8b61f9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 29 Jun 2018 09:13:51 +0200 Subject: [PATCH] SHERLOCK: Fix warning --- engines/sherlock/image_file.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp index 112655648a5..5202401fdf9 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); }