EMI: Handle the a few more leaks.
This commit is contained in:
parent
5b963d6660
commit
36f98b0bbc
3 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -211,6 +211,7 @@ VimaTrack::~VimaTrack() {
|
|||
|
||||
if (_desc) {
|
||||
delete[] _desc->region;
|
||||
delete _desc->inStream;
|
||||
}
|
||||
|
||||
delete _handle;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue