EMI: Handle the a few more leaks.

This commit is contained in:
Einar Johan T. Sømåen 2012-01-26 07:33:12 +01:00
parent 5b963d6660
commit 36f98b0bbc
3 changed files with 3 additions and 1 deletions

View file

@ -338,7 +338,7 @@ bool BitmapData::loadTile(const Common::String &fname, Common::SeekableReadStrea
for (int i = 0; i < numSubImages; ++i) {
delete[] data[i];
}
delete[] data;
Graphics::PixelFormat pixelFormat;
if (_bpp == 16) {
_colorFormat = BM_RGB1555;

View file

@ -211,6 +211,7 @@ VimaTrack::~VimaTrack() {
if (_desc) {
delete[] _desc->region;
delete _desc->inStream;
}
delete _handle;

View file

@ -158,6 +158,7 @@ void MaterialData::initEMI(const Common::String &filename, Common::SeekableReadS
continue;
}
loadTGA(texData, _textures + i);
delete texData;
}
_numImages = texFileNames.size();
delete ts;