diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-21 10:14:01 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-21 10:14:01 -0400 |
commit | d99b5dfa37c7248e24a0266188752dfa6c9bb3f6 (patch) | |
tree | 8a06cf8d3ce0c7d0ec25deb4f536ef24e1ccddc6 /libs/ardour/audio_playlist_source.cc | |
parent | 027f0e156a4ed764b4a507b8bf81e0764ec0b6d2 (diff) |
fix nasty crash when using double-nested compound (consolidated) regions caused by not (re)allocating enough mixdown buffers; fix up various warnings from valgrind about mismatching operator delete[] by using shared_array<T> rather than shared_ptr<T>, as should have been the case all along
Diffstat (limited to 'libs/ardour/audio_playlist_source.cc')
-rw-r--r-- | libs/ardour/audio_playlist_source.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audio_playlist_source.cc b/libs/ardour/audio_playlist_source.cc index 915aee9595..f82cb7de00 100644 --- a/libs/ardour/audio_playlist_source.cc +++ b/libs/ardour/audio_playlist_source.cc @@ -127,8 +127,8 @@ AudioPlaylistSource::set_state (const XMLNode& node, int version, bool with_desc framecnt_t AudioPlaylistSource::read_unlocked (Sample* dst, framepos_t start, framecnt_t cnt) const { - boost::shared_ptr<Sample> sbuf; - boost::shared_ptr<gain_t> gbuf; + boost::shared_array<Sample> sbuf; + boost::shared_array<gain_t> gbuf; framecnt_t to_read; framecnt_t to_zero; |