Audio drivers are destroyed on OS destruction, when memory management is no longer available so they must release their dynamic allocations explicitly in their `finish()` method.
@@ -337,6 +337,8 @@ void AudioDriverWASAPI::finish() {
memdelete(mutex);
mutex = NULL;
}
+
+ samples_in.clear();
AudioDriverWASAPI::AudioDriverWASAPI() {