Fix GCC errors 2

This commit is contained in:
Natt Akuma 2022-05-11 00:29:17 +07:00
parent 960a8e3616
commit 00414c6504
2 changed files with 2 additions and 5 deletions

View File

@ -379,11 +379,7 @@ void DivPlatformSCC::quit() {
delete oscBuf[i]; delete oscBuf[i];
} }
if (scc!=NULL) { if (scc!=NULL) {
if (isPlus) { delete scc;
delete (k052539_scc_core*)scc;
} else {
delete (k051649_scc_core*)scc;
}
} }
} }

View File

@ -41,6 +41,7 @@ public:
scc_core() scc_core()
: m_voice{*this,*this,*this,*this,*this} : m_voice{*this,*this,*this,*this,*this}
{}; {};
virtual ~scc_core(){};
// accessors // accessors
virtual u8 scc_r(bool is_sccplus, u8 address) = 0; virtual u8 scc_r(bool is_sccplus, u8 address) = 0;