summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-05-28 14:52:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-28 14:52:37 +0000
commit16144ac3789f6dbe36a7011cf23305f072a7bfcb (patch)
tree28900ef1688621518becf9e0ed3a5dee6c33d754 /media/jni
parentd198c60c944a946f31e151b29dd919aac71e87eb (diff)
parent14d226a2cd7b39e17a3f0bfdab79e645f7146f53 (diff)
downloadframeworks_base-16144ac3789f6dbe36a7011cf23305f072a7bfcb.zip
frameworks_base-16144ac3789f6dbe36a7011cf23305f072a7bfcb.tar.gz
frameworks_base-16144ac3789f6dbe36a7011cf23305f072a7bfcb.tar.bz2
Merge "Add comments to indicate code review was done for bugs" into mnc-dev
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/soundpool/SoundPool.cpp1
1 files changed, 1 insertions, 0 deletions
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>& 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.