fixed two leaks

svn-id: r8739
This commit is contained in:
Max Horn 2003-07-04 13:16:48 +00:00
parent 470b406587
commit 85c467c6a0
2 changed files with 3 additions and 0 deletions

View File

@ -877,6 +877,8 @@ void MidiDriver_ADLIB::close() {
// Turn off the OPL emulation
YM3812Shutdown();
free(_adlib_reg_cache);
_isOpen = false;
}

View File

@ -52,6 +52,7 @@ public:
};
Instrument() : _type (0), _instrument (0) { }
~Instrument() { delete _instrument; }
static void nativeMT32 (bool native);
void clear();