ULTIMA4: Further leak fixes

This commit is contained in:
Paul Gilbert 2020-05-08 20:20:58 -07:00
parent 1c4a964be5
commit 2ced43fc9e
3 changed files with 7 additions and 0 deletions

View File

@ -562,6 +562,8 @@ Party::Party(SaveGame *s) : _saveGame(s), _transport(0), _torchDuration(0), _act
}
Party::~Party() {
for (uint idx = 0; idx < _members.size(); ++idx)
delete _members[idx];
}
void Party::notifyOfChange(PartyMember *pm, PartyEvent::Type eventType) {

View File

@ -60,6 +60,10 @@ Tile::Tile(Tileset *tileset)
, _animationRule("") {
}
Tile::~Tile() {
deleteImage();
}
void Tile::loadProperties(const ConfigElement &conf) {
if (conf.getName() != "tile")
return;

View File

@ -66,6 +66,7 @@ class TileAnim;
class Tile : private Uncopyable {
public:
Tile(Tileset *tileset);
~Tile();
/**
* Loads tile information.