fix audio-engine dtor.
backends - once instantiated - keep a reference to the engine. when audioengine is destroyed, the backends must be deinstantiated. This fixes various unit-test cases.
This commit is contained in:
parent
9268d2e699
commit
32269f0c5a
@ -101,6 +101,9 @@ AudioEngine::~AudioEngine ()
|
||||
stop_metering_thread ();
|
||||
stop_hw_event_processing();
|
||||
drop_backend ();
|
||||
for (BackendMap::const_iterator i = _backends.begin(); i != _backends.end(); ++i) {
|
||||
i->second->deinstantiate();
|
||||
}
|
||||
}
|
||||
|
||||
AudioEngine*
|
||||
|
Loading…
Reference in New Issue
Block a user