mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
memset()ing the output image with 0 at the start
svn-id: r35438
This commit is contained in:
parent
0410d6dfae
commit
519815cb51
@ -485,6 +485,7 @@ bool SMKPlayer::loadFile(const char *fileName) {
|
||||
_TypeTree = new BigHuffmanTree(bs);
|
||||
|
||||
_image = (byte *)malloc(2 * _header.width * _header.height);
|
||||
memset(_image, 0, 2 * _header.width * _header.height);
|
||||
_palette = (byte *)malloc(3 * 256);
|
||||
memset(_palette, 0, 3 * 256);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user