Unsub from tick services where applicable

This commit is contained in:
2026-08-10 20:35:18 -04:00
parent 1c792aab47
commit 5cb08a7b28
+2
View File
@@ -622,6 +622,7 @@ static void alarm_window_load() {
} }
static void alarm_window_unload() { static void alarm_window_unload() {
tick_timer_service_unsubscribe();
text_layer_destroy(s_counter_txt_layer); text_layer_destroy(s_counter_txt_layer);
window_destroy(s_drop_window); window_destroy(s_drop_window);
text_layer_destroy(s_side_a_txt_layer); text_layer_destroy(s_side_a_txt_layer);
@@ -768,6 +769,7 @@ static void setter_window_load() {
} }
static void setter_window_unload() { static void setter_window_unload() {
tick_timer_service_unsubscribe();
text_layer_destroy(s_setter_txt_layer); text_layer_destroy(s_setter_txt_layer);
layer_destroy(s_setter_highlight_layer); layer_destroy(s_setter_highlight_layer);
text_layer_destroy(s_counter_txt_layer); text_layer_destroy(s_counter_txt_layer);