diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-05-19 23:22:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 23:22:06 +0200 |
commit | 5e3c7804cd603335013f838b0acf736fa1ccbb8d (patch) | |
tree | a1da35db1db601c32e7b34d06c132b0d76f9d5dc /src | |
parent | 126d3264cc2a0334444abe1dbb74deb6d5fe5de6 (diff) | |
parent | 581bdb06ba2504bb7ba1305d14827024a807bc4a (diff) |
Merge pull request #2799 from uklotzde/soundmanager_invalid_delete
SoundManager: Fix invalid delete
Diffstat (limited to 'src')
-rw-r--r-- | src/soundio/soundmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soundio/soundmanager.cpp b/src/soundio/soundmanager.cpp index bae5d66e54..87724e7e12 100644 --- a/src/soundio/soundmanager.cpp +++ b/src/soundio/soundmanager.cpp @@ -387,7 +387,7 @@ SoundDeviceError SoundManager::setupDevices() { AudioInputBuffer aib(in, SampleUtil::alloc(MAX_BUFFER_LEN)); err = pDevice->addInput(aib); if (err != SOUNDDEVICE_ERROR_OK) { - delete [] aib.getBuffer(); + SampleUtil::free(aib.getBuffer()); goto closeAndError; } |