mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-03 17:57:26 +00:00
fix possible crash when closing Furnace
This commit is contained in:
parent
f80488d9b0
commit
b8012344e7
1 changed files with 1 additions and 1 deletions
|
@ -3339,6 +3339,7 @@ bool DivEngine::initAudioBackend() {
|
||||||
|
|
||||||
bool DivEngine::deinitAudioBackend() {
|
bool DivEngine::deinitAudioBackend() {
|
||||||
if (output!=NULL) {
|
if (output!=NULL) {
|
||||||
|
output->quit();
|
||||||
if (output->midiIn) {
|
if (output->midiIn) {
|
||||||
if (output->midiIn->isDeviceOpen()) {
|
if (output->midiIn->isDeviceOpen()) {
|
||||||
logI("closing MIDI input.");
|
logI("closing MIDI input.");
|
||||||
|
@ -3352,7 +3353,6 @@ bool DivEngine::deinitAudioBackend() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output->quitMidi();
|
output->quitMidi();
|
||||||
output->quit();
|
|
||||||
delete output;
|
delete output;
|
||||||
output=NULL;
|
output=NULL;
|
||||||
//audioEngine=DIV_AUDIO_NULL;
|
//audioEngine=DIV_AUDIO_NULL;
|
||||||
|
|
Loading…
Reference in a new issue