Fix Chromium clang plugin warnings

NOTRY=true
BUG=webrtc:163

Review-Url: https://codereview.webrtc.org/2291503002
Cr-Commit-Position: refs/heads/master@{#13959}
This commit is contained in:
kwiberg
2016-08-29 10:05:24 -07:00
committed by Commit bot
parent e39f251dac
commit 65fc8b9138
11 changed files with 41 additions and 30 deletions

View File

@ -46,6 +46,12 @@ PCMFile::PCMFile(uint32_t timestamp)
timestamp_ = timestamp;
}
PCMFile::~PCMFile() {
if (pcm_file_) {
fclose(pcm_file_);
}
}
int16_t PCMFile::ChooseFile(std::string* file_name, int16_t max_len,
uint16_t* frequency_hz) {
char tmp_name[MAX_FILE_NAME_LENGTH_BYTE];