mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
SAGA2: Plug memory leak. CID 1458006
This commit is contained in:
parent
f7aa3933b6
commit
3c7e2ef033
@ -645,6 +645,13 @@ ColorSchemeList::ColorSchemeList(int count, Common::SeekableReadStream *stream)
|
||||
_schemes[i] = new ColorScheme(stream);
|
||||
}
|
||||
|
||||
ColorSchemeList::~ColorSchemeList() {
|
||||
for (int i = 0; i < _count; ++i)
|
||||
delete _schemes[i];
|
||||
|
||||
free(_schemes);
|
||||
}
|
||||
|
||||
ActorAppearance *LoadActorAppearance(uint32 id, int16 banksNeeded) {
|
||||
int16 bank;
|
||||
int schemeListSize;
|
||||
|
@ -186,6 +186,7 @@ public:
|
||||
ColorScheme **_schemes;
|
||||
|
||||
ColorSchemeList(int count, Common::SeekableReadStream *stream);
|
||||
~ColorSchemeList();
|
||||
};
|
||||
|
||||
/* ===================================================================== *
|
||||
|
Loading…
x
Reference in New Issue
Block a user