Skip to content

Commit

Permalink
Backed out changeset f8d39b8ed5dc (bug 1640369) for android lint fail…
Browse files Browse the repository at this point in the history
…ure on SamplePool.java. CLOSED TREE
  • Loading branch information
cristianbrindusan committed Jul 2, 2020
1 parent 24c63a2 commit 05dbb89
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,14 @@ private synchronized void clear() {
for (Sample s : mRecycledSamples) {
disposeSample(s);
}
mRecycledSamples.clear();

mBuffers.forEach((i, m) -> m.dispose());
mRecycledSamples.clear();
mBuffers.clear();
}

private void disposeSample(final Sample sample) {
if (sample.bufferId != Sample.NO_BUFFER) {
SampleBuffer s = mBuffers.remove(sample.bufferId);
s.dispose();
mBuffers.remove(sample.bufferId);
}
sample.dispose();
}
Expand Down

0 comments on commit 05dbb89

Please sign in to comment.