1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Fix WASAPI cleanup

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.
This commit is contained in:
Pedro J. Estébanez
2017-09-09 22:30:31 +02:00
parent a36db90655
commit 868211eba7

View File

@@ -337,6 +337,8 @@ void AudioDriverWASAPI::finish() {
memdelete(mutex);
mutex = NULL;
}
samples_in.clear();
}
AudioDriverWASAPI::AudioDriverWASAPI() {