- sb16 / es1370: fixed possible segfaults when unloading plugin

This commit is contained in:
Volker Ruppert 2012-04-09 08:48:10 +00:00
parent c24080c92a
commit 34ca44cbcd
2 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,7 @@ bx_es1370_c::bx_es1370_c()
memset(&s, 0, sizeof(bx_es1370_t));
s.dac1_timer_index = BX_NULL_TIMER_HANDLE;
s.dac2_timer_index = BX_NULL_TIMER_HANDLE;
soundmod = NULL;
}
bx_es1370_c::~bx_es1370_c()

View File

@ -218,11 +218,13 @@ bx_sb16_c::bx_sb16_c(void)
mpu401.timer_handle = BX_NULL_TIMER_HANDLE;
dsp.timer_handle = BX_NULL_TIMER_HANDLE;
opl.timer_handle = BX_NULL_TIMER_HANDLE;
soundmod = NULL;
midimode = 0;
midifile = NULL;
wavemode = 0;
wavefile = NULL;
loglevel = 0;
logfile = NULL;
}
bx_sb16_c::~bx_sb16_c(void)