mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Get rid of the memory leak
This commit is contained in:
parent
67a2ae1125
commit
b1b3495af2
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue