summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index af7d205..9e1f1ba 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -3630,12 +3630,12 @@ public:
outIndex_( 0 ) {}
~WasapiBuffer() {
- delete buffer_;
+ free( buffer_ );
}
// sets the length of the internal ring buffer
void setBufferSize( unsigned int bufferSize, unsigned int formatBytes ) {
- delete buffer_;
+ free( buffer_ );
buffer_ = ( char* ) calloc( bufferSize, formatBytes );