Delete AudioServer buses after driver shutdown

This commit is contained in:
Bernhard Liebl 2017-12-29 11:22:56 +01:00
parent f11a138505
commit d5ed266078

View File

@ -892,15 +892,15 @@ void AudioServer::load_default_bus_layout() {
void AudioServer::finish() {
for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
AudioDriverManager::get_driver(i)->finish();
}
for (int i = 0; i < buses.size(); i++) {
memdelete(buses[i]);
}
buses.clear();
for (int i = 0; i < AudioDriverManager::get_driver_count(); i++) {
AudioDriverManager::get_driver(i)->finish();
}
}
void AudioServer::update() {