DRAGONS: Fix more memory leaks

This commit is contained in:
Eugene Sandulenko 2020-05-04 12:35:06 +02:00
parent 2a23de7f4f
commit af531d6fc7
4 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,7 @@ DragonFLG::DragonFLG(BigfileArchive *bigfileArchive) {
DragonFLG::~DragonFLG() {
delete _data;
delete _properties;
}
bool DragonFLG::get(uint32 propertyId) {

View File

@ -57,6 +57,7 @@ DragonImg::DragonImg(BigfileArchive *bigfileArchive) {
DragonImg::~DragonImg() {
delete _imgData;
delete[] _imgObjects;
}
Img *DragonImg::getImg(uint32 iptId) {

View File

@ -50,6 +50,10 @@ DragonRMS::DragonRMS(BigfileArchive *bigfileArchive, DragonOBD *dragonOBD) : _dr
delete readStream;
}
DragonRMS::~DragonRMS() {
delete[] _rmsObjects;
}
char *DragonRMS::getSceneName(uint32 sceneId) {
return getRMS(sceneId)->_sceneName;
}

View File

@ -47,6 +47,7 @@ private:
DragonOBD *_dragonOBD;
public:
DragonRMS(BigfileArchive *bigfileArchive, DragonOBD *dragonOBD);
~DragonRMS();
char *getSceneName(uint32 sceneId);
byte *getAfterSceneDataLoadedScript(uint32 sceneId);
byte *getBeforeSceneDataLoadedScript(uint32 sceneId);