diff options
author | Robin Gareus <robin@gareus.org> | 2018-07-31 16:54:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-31 16:54:08 +0200 |
commit | 301d343e8471d89b7f934d10ca8fe6cc62fe6752 (patch) | |
tree | 31bfca53ef8bb1dad498dbef2f88d5ae1aeb0bc7 /libs/ardour/disk_reader.cc | |
parent | c5ac7c46743b98c84131a899110445348e2a7232 (diff) |
Fix mismatched delete/delete[]
Diffstat (limited to 'libs/ardour/disk_reader.cc')
-rw-r--r-- | libs/ardour/disk_reader.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index ebc06b7d9e..375dda7075 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -17,7 +17,7 @@ */ -#include <boost/smart_ptr/scoped_ptr.hpp> +#include <boost/smart_ptr/scoped_array.hpp> #include "pbd/enumwriter.h" #include "pbd/memento_command.h" @@ -538,8 +538,8 @@ DiskReader::overwrite_existing_buffers () /* assume all are the same size */ samplecnt_t size = c->front()->rbuf->bufsize(); - boost::scoped_ptr<Sample> mixdown_buffer (new Sample[size]); - boost::scoped_ptr<float> gain_buffer (new float[size]); + boost::scoped_array<Sample> mixdown_buffer (new Sample[size]); + boost::scoped_array<float> gain_buffer (new float[size]); /* reduce size so that we can fill the buffer correctly (ringbuffers can only handle size-1, otherwise they appear to be empty) @@ -829,8 +829,8 @@ DiskReader::_do_refill_with_alloc (bool partial_fill) */ { - boost::scoped_ptr<Sample> mix_buf (new Sample[2*1048576]); - boost::scoped_ptr<float> gain_buf (new float[2*1048576]); + boost::scoped_array<Sample> mix_buf (new Sample[2*1048576]); + boost::scoped_array<float> gain_buf (new float[2*1048576]); int ret = refill_audio (mix_buf.get(), gain_buf.get(), (partial_fill ? _chunk_samples : 0)); |