Get rid of the memory leak

This commit is contained in:
Caleb Fontenot 2024-04-22 08:32:20 -05:00
parent 67a2ae1125
commit b1b3495af2

View file

@ -249,6 +249,7 @@ void WatchFaceTerminal::Refresh() {
//TemperatureColor(temp);
NRF_LOG_INFO("Color hex: %s", color);
lv_label_set_text_fmt(weatherStatus, "[WTHR]#%s %d#°%c %s", color, RoundTemperature(temp), tempUnit, WeatherString(weatherId));
delete[] color;
} else {
lv_label_set_text_static(weatherStatus, "[WTHR]No Data");
}