Skip to content
Snippets Groups Projects
Commit 8ef04480 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9508: fixes segfault in manager by changing order in which destructors are called

parent 9f498b19
No related branches found
No related tags found
No related merge requests found
...@@ -131,10 +131,12 @@ void ManagerImpl::terminate() ...@@ -131,10 +131,12 @@ void ManagerImpl::terminate()
saveConfig(); saveConfig();
unloadAccountMap();
delete SIPVoIPLink::instance(); delete SIPVoIPLink::instance();
// Unload account map AFTER destroying
// the SIPVoIPLink, the link still needs the accounts for pjsip cleanup
unloadAccountMap();
ost::MutexLock lock(audioLayerMutex_); ost::MutexLock lock(audioLayerMutex_);
delete audiodriver_; delete audiodriver_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment