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