commit | a0169a073d88efefbfb35fa0ea8e94f7b31d7469 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Jul 06 18:32:01 2015 -0700 |
committer | Eric Laurent <elaurent@google.com> | Mon Jul 06 18:32:01 2015 -0700 |
tree | 42240d72b6de6728a4bbe92f3ed8ddba338d5c02 | |
parent | e59c6a33e724579f4b8ac76586e6f667fa0b8572 [diff] |
audio: Do not delete PatchRecord before Peer is stopped PatchPanel::clearPatchConnections deletes PatchRecord before the peer PatchTrack is stopped. This can cause an access to already free'ed memory leading to a crash in PatchTrack::getNextBuffer. Fix is to delete PatchRecord and PatchTrack only after removing both of them from active tracks list Bug: 22304526. Change-Id: I7003756d3d2dd8912ce5e3b2fc31f5e82f455888