FULLPIPE: Free _soundItems when SoundList is deleted

This commit is contained in:
Torbjörn Andersson 2016-09-08 17:24:22 +02:00
parent 12973f4e90
commit 7db3902b44
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,10 @@ SoundList::SoundList() {
_libHandle = 0;
}
SoundList::~SoundList() {
free(_soundItems);
}
bool SoundList::load(MfcArchive &file, char *fname) {
debugC(5, kDebugLoading, "SoundList::load()");

View File

@ -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);