Skip to content

Commit

Permalink
SHERLOCK: Fix the way the sprite frames are freed
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed May 7, 2015
1 parent 4884762 commit f6b6b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sherlock/resources.cpp
Expand Up @@ -328,7 +328,7 @@ void ImageFile::load(Common::SeekableReadStream &stream, bool skipPalette, bool
byte *data = new byte[frame._size];
stream.read(data, frame._size);
decompressFrame(frame, data);
delete data;
delete[] data;

push_back(frame);
}
Expand Down

0 comments on commit f6b6b4c

Please sign in to comment.