diff options
| author | garyscavone <garyscavone@users.noreply.github.com> | 2014-11-03 13:37:56 -0500 |
|---|---|---|
| committer | garyscavone <garyscavone@users.noreply.github.com> | 2014-11-03 13:37:56 -0500 |
| commit | a3ebd260521178f31baa920752386d6788122aee (patch) | |
| tree | cc4cae2b32667ca08eee1e71fad9159f015aac9e /RtAudio.cpp | |
| parent | e6d26d3a2132aa94451eedbb9dc916525e654fcd (diff) | |
| parent | 17188fb2b1f05d8bdee44fc9d5bc339da3e78912 (diff) | |
Merge pull request #27 from TyounanMOTI/fix_wasapi_buffer_free_calloc
Fix calloc-free mismatch
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 778cbf2..0c238d5 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3631,12 +3631,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 );
|
