mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
FULLPIPE: Free _soundItems when SoundList is deleted
This commit is contained in:
parent
12973f4e90
commit
7db3902b44
@ -43,6 +43,10 @@ SoundList::SoundList() {
|
||||
_libHandle = 0;
|
||||
}
|
||||
|
||||
SoundList::~SoundList() {
|
||||
free(_soundItems);
|
||||
}
|
||||
|
||||
bool SoundList::load(MfcArchive &file, char *fname) {
|
||||
debugC(5, kDebugLoading, "SoundList::load()");
|
||||
|
||||
|
@ -67,6 +67,7 @@ class SoundList : public CObject {
|
||||
|
||||
public:
|
||||
SoundList();
|
||||
~SoundList();
|
||||
virtual bool load(MfcArchive &file, char *fname);
|
||||
virtual bool load(MfcArchive &file) { assert(0); return false; } // Disable base class
|
||||
bool loadFile(const char *fname, char *libname);
|
||||
|
Loading…
Reference in New Issue
Block a user