mirror of
https://github.com/godotengine/godot.git
synced 2024-10-23 13:41:43 +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:
parent
a36db90655
commit
868211eba7
|
@ -337,6 +337,8 @@ void AudioDriverWASAPI::finish() {
|
|||
memdelete(mutex);
|
||||
mutex = NULL;
|
||||
}
|
||||
|
||||
samples_in.clear();
|
||||
}
|
||||
|
||||
AudioDriverWASAPI::AudioDriverWASAPI() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user