From 3890f47b59986d53dfb20307c2200c77c31213cc Mon Sep 17 00:00:00 2001 From: adamczuk-piotr <59257509+adamczuk-piotr@users.noreply.github.com> Date: Sun, 19 Apr 2020 17:29:25 +0200 Subject: [PATCH] Add virtual destructor for TFT_eSPI --- TFT_eSPI.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 6437700..acb8451 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -360,6 +360,8 @@ class TFT_eSPI : public Print { TFT_eSPI(int16_t _W = TFT_WIDTH, int16_t _H = TFT_HEIGHT); + virtual ~TFT_eSPI(); //is base for TFT_eSprite class + // init() and begin() are equivalent, begin() included for backwards compatibility // Sketch defined tab colour option is for ST7735 displays only void init(uint8_t tc = TAB_COLOUR), begin(uint8_t tc = TAB_COLOUR);