commit | deecb6ecade66d0e350142491172a55dcc1d75b1 | [log] [tgz] |
---|---|---|
author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | Fri Apr 06 17:22:51 2018 +0000 |
committer | Android Build Merger (Role) <noreply-android-build-merger@google.com> | Fri Apr 06 17:22:51 2018 +0000 |
tree | 452ad56c8fa3d559db751562710ed7cc505e26fa | |
parent | 740edfbe345fdce769ac6d9715eb79d4fe97e246 [diff] | |
parent | 8eb9eb44d16f03f23c2c6165dd26f0ae1b4e1718 [diff] |
[automerger] Init gain config to prevent uninit leak. am: ebe0777edc am: 1f39e79a73 am: f57d4e10ef am: 3fc94f3a7f am: e279da4090 am: 7a41b25ce7 am: 3c5a6f0638 am: 8eb9eb44d1 Change-Id: I816c9ce0d669ff507ec5e4efa41c87b79ec4112f
diff --git a/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp b/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp index 17ed537..ce9bdc2 100644 --- a/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp +++ b/services/audiopolicy/common/managerdefinitions/src/AudioPort.cpp
@@ -384,6 +384,7 @@ mSamplingRate = 0; mChannelMask = AUDIO_CHANNEL_NONE; mFormat = AUDIO_FORMAT_INVALID; + memset(&mGain, 0, sizeof(struct audio_gain_config)); mGain.index = -1; }