The process() function can be called while an effect is deallocating. In these instances, the ring buffer (when in use) gets deallocated first, then the process() is called which tries to access the buffer, and the app crashes.
Add an isDeallocating flag to prevent calls to process().
The process() function can be called while an effect is deallocating. In these instances, the ring buffer (when in use) gets deallocated first, then the process() is called which tries to access the buffer, and the app crashes.
Add an isDeallocating flag to prevent calls to process().