Unload smooth font.

Prevent memmory leaks.
This commit is contained in:
adamczuk-piotr 2020-04-10 00:20:01 +02:00 committed by GitHub
parent 875b451590
commit 870207dcfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ void* TFT_eSprite::createSprite(int16_t w, int16_t h, uint8_t frames)
*************************************************************************************x*/
TFT_eSprite::~TFT_eSprite(void)
{
unloadFont();
deleteSprite();
}