commit | b9481d8cf6f3ade96ed062dc3f601c777fe4430f | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Sep 17 05:12:56 2009 -0700 |
committer | Eric Laurent <elaurent@google.com> | Thu Sep 17 09:26:04 2009 -0700 |
tree | 4b6e08fb86055440d681edf00a7d891f08ca4e04 | |
parent | 76f0111845f0886f522cfe1eb5ec1dee34181f7c [diff] |
Fix issue 2127371: Possible race condition in AudioFlinger::openRecord() when a Track is being destroyed. The fix consists in locking AudioFlinger::mLock mutex in the TrackBase destructor before clearing the strong pointer to the shared memory client. The mutex is not locked in removeclient() any more which implies that we must make sure that the Client destructor is always called from the TrackBase destructor or that we hold the mLock mutex before calling deleting the Client.