Address NTS TCs AUDIO-026-* failures

[ Merge of http://go/wvgerrit/66083 and http://go/ag/5445191 ]

Fix proposed by amlogic. Release usage session early in the CdmEngine
destructor to avoid SIGBUS.

Bug: 118646062
Test: WV unit/integration tests.

Change-Id: I8b419c57814dc32e9873173ab6c24d209bdcc3a0
This commit is contained in:
Rahul Frias
2018-11-05 23:13:39 -08:00
parent f0e855a8d4
commit 14978a0832

View File

@@ -86,6 +86,7 @@ CdmEngine::CdmEngine(FileSystem* file_system, const std::string& spoid)
}
CdmEngine::~CdmEngine() {
usage_session_.reset();
AutoLock lock(session_map_lock_);
session_map_.Terminate();
}