CINE: Fixed two memory leaks when shutting down the CINE engine

svn-id: r32332
This commit is contained in:
Christopher Page 2008-05-27 23:26:48 +00:00
parent 369f7b0d08
commit 17b0144402
2 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,6 @@
#include "cine/sound.h"
#include "cine/various.h"
namespace Cine {
Sound *g_sound;
@ -70,6 +69,9 @@ CineEngine::~CineEngine() {
freeErrmessDat();
}
Common::clearAllSpecialDebugLevels();
free(partBuffer);
free(textDataPtr);
}
int CineEngine::init() {

View File

@ -249,6 +249,7 @@ AdlibSoundDriver::AdlibSoundDriver(Audio::Mixer *mixer)
AdlibSoundDriver::~AdlibSoundDriver() {
_mixer->stopHandle(_soundHandle);
OPLDestroy(_opl);
}
void AdlibSoundDriver::setupChannel(int channel, const byte *data, int instrument, int volume) {