diff --git a/src/util/DynamicFifoBuffer.hxx b/src/util/DynamicFifoBuffer.hxx index fcdf8c6f8..deba848a7 100644 --- a/src/util/DynamicFifoBuffer.hxx +++ b/src/util/DynamicFifoBuffer.hxx @@ -45,8 +45,12 @@ public: using typename ForeignFifoBuffer::const_pointer_type; using typename ForeignFifoBuffer::Range; + /** + * Allocate a buffer with the given capacity. + */ explicit DynamicFifoBuffer(size_type _capacity) noexcept :ForeignFifoBuffer(new T[_capacity], _capacity) {} + ~DynamicFifoBuffer() noexcept { delete[] GetBuffer(); }