Get rid of the memory leak
This commit is contained in:
parent
9180bc84de
commit
20cd951cde
@ -249,6 +249,7 @@ void WatchFaceTerminal::Refresh() {
|
|||||||
//TemperatureColor(temp);
|
//TemperatureColor(temp);
|
||||||
NRF_LOG_INFO("Color hex: %s", color);
|
NRF_LOG_INFO("Color hex: %s", color);
|
||||||
lv_label_set_text_fmt(weatherStatus, "[WTHR]#%s %d#°%c %s", color, RoundTemperature(temp), tempUnit, WeatherString(weatherId));
|
lv_label_set_text_fmt(weatherStatus, "[WTHR]#%s %d#°%c %s", color, RoundTemperature(temp), tempUnit, WeatherString(weatherId));
|
||||||
|
delete[] color;
|
||||||
} else {
|
} else {
|
||||||
lv_label_set_text_static(weatherStatus, "[WTHR]No Data");
|
lv_label_set_text_static(weatherStatus, "[WTHR]No Data");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user