summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-06-12 18:23:35 -0700
committerAndy Hung <hunga@google.com>2015-06-12 18:23:35 -0700
commit4c6afaf1053ecbfda6d95098e0f49772ecbcf2e1 (patch)
tree0b22dbafb75fc4c064b25f3b3f923cf39664ece2 /services/audioflinger/Tracks.cpp
parentca097142ba4664858bc29bb538bcfcf5ea03ebe7 (diff)
downloadframeworks_av-4c6afaf1053ecbfda6d95098e0f49772ecbcf2e1.zip
frameworks_av-4c6afaf1053ecbfda6d95098e0f49772ecbcf2e1.tar.gz
frameworks_av-4c6afaf1053ecbfda6d95098e0f49772ecbcf2e1.tar.bz2
Fix AudioRecord cleanup if construction fails
Bug: 11671194 Change-Id: Id48350264f8b5ce53bf7ce2b308bf4ba21e59241
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index 1b03060..f7da209 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -1951,7 +1951,9 @@ AudioFlinger::RecordThread::RecordTrack::RecordTrack(
((buffer == NULL) ? ALLOC_LOCAL : ALLOC_NONE),
type),
mOverflow(false),
- mFramesToDrop(0)
+ mFramesToDrop(0),
+ mResamplerBufferProvider(NULL), // initialize in case of early constructor exit
+ mRecordBufferConverter(NULL)
{
if (mCblk == NULL) {
return;