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:
Robin Gareus 2014-12-03 20:44:23 +01:00
parent 9268d2e699
commit 32269f0c5a

View File

@ -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*