Merge "Fix unreleased mutex in ToneGenerator stopTone()" into jb-mr2-dev
diff --git a/media/libmedia/ToneGenerator.cpp b/media/libmedia/ToneGenerator.cpp
index f09ce75..f55b697 100644
--- a/media/libmedia/ToneGenerator.cpp
+++ b/media/libmedia/ToneGenerator.cpp
@@ -1012,6 +1012,7 @@
if (lStatus == NO_ERROR) {
// If the tone was restarted exit now before calling clearWaveGens();
if (mState != TONE_INIT) {
+ mLock.unlock();
return;
}
ALOGV("track stop complete, time %d", (unsigned int)(systemTime()/1000000));