Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: media/base/audio_bus_perftest.cc

Issue 441673003: Fix new[]/delete mismatch in AudioBusPerfTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_bus_perftest.cc
diff --git a/media/base/audio_bus_perftest.cc b/media/base/audio_bus_perftest.cc
index ae60531074ec4ab218f07f96e2b5fb7e76273149..0af0235073e1354285d8a58f260f41edc1cc2847 100644
--- a/media/base/audio_bus_perftest.cc
+++ b/media/base/audio_bus_perftest.cc
@@ -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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698