commit | 65fc8b9138cf49131486d3fc28b50c7ab565cabb | [log] [tgz] |
---|---|---|
author | kwiberg <kwiberg@webrtc.org> | Mon Aug 29 10:05:24 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Aug 29 17:05:34 2016 +0000 |
tree | 8ff940b4ffe5be3531059ce5e8ecffda6e460b3d | |
parent | e39f251dacf66e50153bcda615f06b7c59e5856b [diff] [blame] |
Fix Chromium clang plugin warnings NOTRY=true BUG=webrtc:163 Review-Url: https://codereview.webrtc.org/2291503002 Cr-Commit-Position: refs/heads/master@{#13959}
diff --git a/webrtc/modules/audio_coding/test/PCMFile.cc b/webrtc/modules/audio_coding/test/PCMFile.cc index 9289d73..b4acf35 100644 --- a/webrtc/modules/audio_coding/test/PCMFile.cc +++ b/webrtc/modules/audio_coding/test/PCMFile.cc
@@ -46,6 +46,12 @@ 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];