Fix AudioRecord cleanup if construction fails
Bug: 11671194
Change-Id: Id48350264f8b5ce53bf7ce2b308bf4ba21e59241
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 @@
((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;