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

This commit is contained in:
Paul Davis 2013-03-21 10:14:01 -04:00
parent 027f0e156a
commit d99b5dfa37
5 changed files with 21 additions and 13 deletions

View file

@ -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;