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<T>::const_pointer_type; using typename ForeignFifoBuffer<T>::Range; + /** + * Allocate a buffer with the given capacity. + */ explicit DynamicFifoBuffer(size_type _capacity) noexcept :ForeignFifoBuffer<T>(new T[_capacity], _capacity) {} + ~DynamicFifoBuffer() noexcept { delete[] GetBuffer(); }