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

Unified Diff: services/media/audio/platform/generic/standard_output_base.h

Issue 2051923002: Motown: Fix unique_ptrs to arrays so deallocation is done properly (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | services/media/audio/platform/generic/standard_output_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/platform/generic/standard_output_base.h
diff --git a/services/media/audio/platform/generic/standard_output_base.h b/services/media/audio/platform/generic/standard_output_base.h
index fd692fb521546bba1b399e607aaf6bd3871da8ac..60db6e0b4546c90ceec454253e0a55188a67fd5d 100644
--- a/services/media/audio/platform/generic/standard_output_base.h
+++ b/services/media/audio/platform/generic/standard_output_base.h
@@ -115,7 +115,7 @@ class StandardOutputBase : public AudioOutput {
// will drop to only 255 simultanious tracks. It is unclear if this is a
// reasonable system-wide limitation or not.
// 2) We support floating point audio.
- std::unique_ptr<int32_t> mix_buf_;
+ std::unique_ptr<int32_t[]> mix_buf_;
uint32_t mix_buf_frames_ = 0;
// State used by the mix task.
« no previous file with comments | « no previous file | services/media/audio/platform/generic/standard_output_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698