diff options
| author | Emil Muratov <gpm@hotplug.ru> | 2023-09-28 16:48:35 +0900 |
|---|---|---|
| committer | Emil Muratov <gpm@hotplug.ru> | 2023-09-28 16:48:35 +0900 |
| commit | d11fe50fc6bcc2b91dcb6bb359b66f7a2df2d5d5 (patch) | |
| tree | 05f7e3e42095415c43687dfc5fa64e0b8726af17 | |
| parent | 4b950041b1c8b7de0bd99f7b0e1f3ed2ac5cb144 (diff) | |
make a d-tor virtual
since a d-tor is non-trivial, it should be virtual if MatrixPanel_I2S_DMA is used as a base class
| -rw-r--r-- | src/ESP32-HUB75-MatrixPanel-I2S-DMA.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h index 33090ff..4a7f735 100644 --- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h +++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.h @@ -462,9 +462,8 @@ public: } // Obj destructor - ~MatrixPanel_I2S_DMA() + virtual ~MatrixPanel_I2S_DMA() { - dma_bus.release(); } |
