ESP8266Audio icon indicating copy to clipboard operation
ESP8266Audio copied to clipboard

ESP32 I2S DMA Buffer Memory Leak issues?

Open yihua-wang opened this issue 3 years ago • 3 comments

https://github.com/earlephilhower/ESP8266Audio/blob/73a1821aba9d41c70a05d59fbb11bfbf0316c866/src/AudioOutputI2S.cpp#L351

yihua-wang avatar Jan 23 '22 10:01 yihua-wang

https://github.com/earlephilhower/ESP8266Audio/blob/73a1821aba9d41c70a05d59fbb11bfbf0316c866/src/AudioOutputI2S.cpp#L102

yihua-wang avatar Jan 23 '22 11:01 yihua-wang

Maybe no memory leak, however I see the problem that the class destructor may miss to uninstall the i2s driver, in case that out->stop() is used before delete. Nice catch 👍

softhack007 avatar Feb 18 '22 22:02 softhack007

See https://github.com/earlephilhower/ESP8266Audio/pull/568

FedericoBusero avatar Sep 18 '22 17:09 FedericoBusero