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

Unified Diff: services/media/audio/platform/linux/alsa_output.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 | « services/media/audio/platform/generic/standard_output_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/platform/linux/alsa_output.h
diff --git a/services/media/audio/platform/linux/alsa_output.h b/services/media/audio/platform/linux/alsa_output.h
index 5f1347091f5cb6f4dd77ba5ea88e563183f558a3..e762b140e5fa6b6fdd527930f1de391d86888f12 100644
--- a/services/media/audio/platform/linux/alsa_output.h
+++ b/services/media/audio/platform/linux/alsa_output.h
@@ -62,7 +62,7 @@ class AlsaOutput : public StandardOutputBase {
LinearTransform::Ratio frames_per_tick_;
- std::unique_ptr<uint8_t> mix_buf_;
+ std::unique_ptr<uint8_t[]> mix_buf_;
uint32_t mix_buf_frames_ = 0;
bool primed_ = false;
« no previous file with comments | « services/media/audio/platform/generic/standard_output_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698