Add proper destructor to the class

Closes #165
This commit is contained in:
Emil Muratov 2021-08-17 00:39:19 +03:00
parent 971da05cac
commit 32a02a5f0f

View file

@ -397,6 +397,17 @@ class MatrixPanel_I2S_DMA {
} }
// Obj destructor
~MatrixPanel_I2S_DMA(){
stopDMAoutput();
delete dmadesc_a;
if (m_cfg.double_buff)
delete dmadesc_b;
}
/* /*
* overload for compatibility * overload for compatibility
*/ */