mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
Fix mismatched delete/delete[]
This commit is contained in:
parent
c5ac7c4674
commit
301d343e84
1 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/smart_ptr/scoped_ptr.hpp>
|
#include <boost/smart_ptr/scoped_array.hpp>
|
||||||
|
|
||||||
#include "pbd/enumwriter.h"
|
#include "pbd/enumwriter.h"
|
||||||
#include "pbd/memento_command.h"
|
#include "pbd/memento_command.h"
|
||||||
|
|
@ -538,8 +538,8 @@ DiskReader::overwrite_existing_buffers ()
|
||||||
/* assume all are the same size */
|
/* assume all are the same size */
|
||||||
samplecnt_t size = c->front()->rbuf->bufsize();
|
samplecnt_t size = c->front()->rbuf->bufsize();
|
||||||
|
|
||||||
boost::scoped_ptr<Sample> mixdown_buffer (new Sample[size]);
|
boost::scoped_array<Sample> mixdown_buffer (new Sample[size]);
|
||||||
boost::scoped_ptr<float> gain_buffer (new float[size]);
|
boost::scoped_array<float> gain_buffer (new float[size]);
|
||||||
|
|
||||||
/* reduce size so that we can fill the buffer correctly (ringbuffers
|
/* reduce size so that we can fill the buffer correctly (ringbuffers
|
||||||
can only handle size-1, otherwise they appear to be empty)
|
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_array<Sample> mix_buf (new Sample[2*1048576]);
|
||||||
boost::scoped_ptr<float> gain_buf (new float[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));
|
int ret = refill_audio (mix_buf.get(), gain_buf.get(), (partial_fill ? _chunk_samples : 0));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue