commit | 18a4b1c31bd8f9df114c1fece02c15a4fcf5579e | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Thu Sep 17 11:40:42 2020 -0700 |
committer | Jiabin Huang <jiabin@google.com> | Thu Sep 17 19:24:23 2020 +0000 |
tree | 7fa6d6a95b08ee4d8185040ff25dbe87f8aa2c26 | |
parent | 84d711ca7d00aa04dd53db0ed7f0e81e400e35a5 [diff] |
Release AudioTrackCallback when the track is removed. The AudioTrackCallback is cached as a strong pointer in PlaybackThread. Remove the callback when the corresponding track is removed to avoid memory leak. Bug: 168675247 Test: repo steps in the bug Change-Id: I09d78ca31c43db4d017f9e8c540628bcb6c44727