Patch #1432378: BASS: Memory leak, patch included

svn-id: r21523
This commit is contained in:
Max Horn 2006-04-01 11:25:08 +00:00
parent 7a81cc76e1
commit 361572af2c

View File

@ -238,14 +238,18 @@ SkyCompact::SkyCompact(void) {
SkyCompact::~SkyCompact(void) {
free(_rawBuf);
free(_asciiBuf);
free(_saveIds);
for (int i = 0; i < _numDataLists; i++) {
free(_compacts[i]);
free(_cptNames[i]);
free(_cptSizes[i]);
free(_cptTypes[i]);
free(_compacts[i]);
}
free(_compacts);
free(_cptNames);
free(_dataListLen);
free(_cptSizes);
free(_cptTypes);
free(_compacts);
_cptFile->close();
delete _cptFile;
}