memset()ing the output image with 0 at the start

svn-id: r35438
This commit is contained in:
Sven Hesse 2008-12-19 13:55:55 +00:00
parent 0410d6dfae
commit 519815cb51

View File

@ -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);