Merge pull request #7862 from meshtastic/master

Backmerge from Master into develop
This commit is contained in:
Tom Fifield
2025-09-08 11:23:22 +10:00
committed by GitHub
34 changed files with 251 additions and 94 deletions

View File

@@ -1128,6 +1128,15 @@ TFTDisplay::TFTDisplay(uint8_t address, int sda, int scl, OLEDDISPLAY_GEOMETRY g
#endif
}
TFTDisplay::~TFTDisplay()
{
// Clean up allocated line pixel buffer to prevent memory leak
if (linePixelBuffer != nullptr) {
free(linePixelBuffer);
linePixelBuffer = nullptr;
}
}
// Write the buffer to the display memory
void TFTDisplay::display(bool fromBlank)
{