Browse Source

Fix bad deallocation in JackMidiAsyncQueue.

The code is only run when other allocations fail, fix it anyway.
This was found by llvm scan-build.
tags/v1.9.21
Florian Walpen Filipe Coelho <falktx@falktx.com> 10 months ago
parent
commit
d8f59c2f80
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/JackMidiAsyncQueue.cpp

+ 1
- 1
common/JackMidiAsyncQueue.cpp View File

@@ -38,7 +38,7 @@ JackMidiAsyncQueue::JackMidiAsyncQueue(size_t max_bytes, size_t max_messages)
}
jack_ringbuffer_free(byte_ring);
}
delete data_buffer;
delete[] data_buffer;
throw std::bad_alloc();
}



Loading…
Cancel
Save