mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
DRAGONS: Fix more memory leaks
This commit is contained in:
parent
2a23de7f4f
commit
af531d6fc7
@ -105,6 +105,7 @@ DragonFLG::DragonFLG(BigfileArchive *bigfileArchive) {
|
||||
|
||||
DragonFLG::~DragonFLG() {
|
||||
delete _data;
|
||||
delete _properties;
|
||||
}
|
||||
|
||||
bool DragonFLG::get(uint32 propertyId) {
|
||||
|
@ -57,6 +57,7 @@ DragonImg::DragonImg(BigfileArchive *bigfileArchive) {
|
||||
|
||||
DragonImg::~DragonImg() {
|
||||
delete _imgData;
|
||||
delete[] _imgObjects;
|
||||
}
|
||||
|
||||
Img *DragonImg::getImg(uint32 iptId) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user