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;