diff --git a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp index 558450751..c49be72a6 100644 --- a/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp +++ b/modules/dsp/chowdsp_dsp_data_structures/Other/chowdsp_SmoothedBufferValue.cpp @@ -88,6 +88,7 @@ template void SmoothedBufferValue::process (int numSamples, ArenaAllocator& alloc) { bufferData = alloc.allocate (numSamples, bufferAlignment); + jassert (bufferData != nullptr); // arena allocator is out of memory! process (numSamples); } @@ -116,6 +117,7 @@ template void SmoothedBufferValue::process (FloatType value, int numSamples, ArenaAllocator& alloc) { bufferData = alloc.allocate (numSamples, bufferAlignment); + jassert (bufferData != nullptr); // arena allocator is out of memory! process (value, numSamples); }