GRAPHICS: Have TGA's loadStream() call destroy()

This commit is contained in:
Matthew Hoops 2013-10-26 10:19:24 -04:00
parent 1b3eee6d78
commit 091bcbf313

View File

@ -50,6 +50,8 @@ void TGADecoder::destroy() {
}
bool TGADecoder::loadStream(Common::SeekableReadStream &tga) {
destroy();
byte imageType, pixelDepth;
bool success;
success = readHeader(tga, imageType, pixelDepth);