Commit a37e3597 authored by scherkus@chromium.org's avatar scherkus@chromium.org

Fix new[]/delete mismatch in AudioBusPerfTest.

Discoved while running media_perftests on a local debug build.

Review URL: https://codereview.chromium.org/441673003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287429 0039d316-1c4b-4281-b951-d872f2087c98
parent c44d7f02
......@@ -15,8 +15,8 @@ static const int kBenchmarkIterations = 20;
template <typename T>
void RunInterleaveBench(AudioBus* bus, const std::string& trace_name) {
const int frame_size = bus->frames() * bus->channels();
scoped_ptr<T> interleaved(new T[frame_size]);
const int byte_size = sizeof(*interleaved);
scoped_ptr<T[]> interleaved(new T[frame_size]);
const int byte_size = sizeof(T);
base::TimeTicks start = base::TimeTicks::HighResNow();
for (int i = 0; i < kBenchmarkIterations; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment