mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +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() {
|
||||
if (output!=NULL) {
|
||||
output->quit();
|
||||
if (output->midiIn) {
|
||||
if (output->midiIn->isDeviceOpen()) {
|
||||
logI("closing MIDI input.");
|
||||
|
@ -3352,7 +3353,6 @@ bool DivEngine::deinitAudioBackend() {
|
|||
}
|
||||
}
|
||||
output->quitMidi();
|
||||
output->quit();
|
||||
delete output;
|
||||
output=NULL;
|
||||
//audioEngine=DIV_AUDIO_NULL;
|
||||
|
|
Loading…
Reference in a new issue