From 14d226a2cd7b39e17a3f0bfdab79e645f7146f53 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 18 May 2015 13:53:39 -0700 Subject: Add comments to indicate code review was done for bugs Bug: 20818955 Bug: 20890069 Change-Id: I243205b99b198eb1b5a1a027b27cbb7d5aaaa8db --- media/jni/soundpool/SoundPool.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'media/jni') diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp index 8038cdf..a705bcc 100644 --- a/media/jni/soundpool/SoundPool.cpp +++ b/media/jni/soundpool/SoundPool.cpp @@ -753,6 +753,7 @@ void SoundChannel::play(const sp& sample, int nextChannelID, float leftV status = newTrack->initCheck(); if (status != NO_ERROR) { ALOGE("Error creating AudioTrack"); + // newTrack goes out of scope, so reference count drops to zero goto exit; } // From now on, AudioTrack callbacks received with previous toggle value will be ignored. -- cgit v1.1