summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/browser/speech/audio_encoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/speech/audio_encoder.cc b/content/browser/speech/audio_encoder.cc
index 7c90674..b2c05c6 100644
--- a/content/browser/speech/audio_encoder.cc
+++ b/content/browser/speech/audio_encoder.cc
@@ -85,7 +85,7 @@ void FLACEncoder::Encode(const short* samples, int num_samples) {
}
// FLAC encoder wants samples as int32s.
- scoped_ptr<FLAC__int32> flac_samples(new FLAC__int32[num_samples]);
+ scoped_array<FLAC__int32> flac_samples(new FLAC__int32[num_samples]);
FLAC__int32* flac_samples_ptr = flac_samples.get();
for (int i = 0; i < num_samples; ++i)
flac_samples_ptr[i] = samples[i];