Get rid of the memory leak

main
Caleb Fontenot 2024-04-22 08:32:20 +07:00
parent 9180bc84de
commit 20cd951cde
1 changed files with 1 additions and 0 deletions

@ -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");
}