| @@ -234,7 +234,7 @@ public: | |||||
| fSampler.RemoveSamplerChannel(fSamplerChannels[i]); | fSampler.RemoveSamplerChannel(fSamplerChannels[i]); | ||||
| fSamplerChannels[i] = nullptr; | fSamplerChannels[i] = nullptr; | ||||
| if (fAudioOutputDevices[i] != nullptr) | |||||
| if (fAudioOutputDevices[i] != nullptr && fUses16Outs) | |||||
| { | { | ||||
| delete fAudioOutputDevices[i]; | delete fAudioOutputDevices[i]; | ||||
| fAudioOutputDevices[i] = nullptr; | fAudioOutputDevices[i] = nullptr; | ||||
| @@ -242,6 +242,12 @@ public: | |||||
| } | } | ||||
| } | } | ||||
| if (fAudioOutputDevices[0] != nullptr) | |||||
| { | |||||
| delete fAudioOutputDevices[0]; | |||||
| fAudioOutputDevices[0] = nullptr; | |||||
| } | |||||
| delete fMidiInputPort; | delete fMidiInputPort; | ||||
| fMidiInputPort = nullptr; | fMidiInputPort = nullptr; | ||||
| } | } | ||||