mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 10:41:55 +00:00
HDB: Fix more memory leaks
This commit is contained in:
parent
8d9004e432
commit
fd91bb7f59
@ -29,6 +29,8 @@ namespace HDB {
|
||||
|
||||
FileMan::FileMan() {
|
||||
_mpcFile = new Common::File;
|
||||
for (uint i = 0; i < _dir.size(); i++)
|
||||
delete _dir[i];
|
||||
}
|
||||
|
||||
FileMan::~FileMan() {
|
||||
|
@ -52,6 +52,13 @@ Gfx::~Gfx() {
|
||||
for (int i = 0; i < _fontHeader.numChars; i++)
|
||||
_fontSurfaces[i].free();
|
||||
_globalSurface.free();
|
||||
delete[] _tLookupArray;
|
||||
for (int i = 0; i < 8; i++)
|
||||
delete _mousePointer[i];
|
||||
for (int i = 0; i < 4; i++)
|
||||
delete _starField[i];
|
||||
delete _snowflake;
|
||||
delete _skyClouds;
|
||||
}
|
||||
|
||||
bool Gfx::init() {
|
||||
|
@ -41,6 +41,10 @@ Map::Map() {
|
||||
}
|
||||
|
||||
Map::~Map() {
|
||||
delete[] _background;
|
||||
delete[] _foreground;
|
||||
delete[] _iconList;
|
||||
|
||||
free(_mapExplosions);
|
||||
free(_mapExpBarrels);
|
||||
free(_mapLaserBeams);
|
||||
|
Loading…
x
Reference in New Issue
Block a user