void handle_deinit() { int i; accel_tap_service_unsubscribe(); tick_timer_service_unsubscribe(); for (i=0; i<NUMSLOTS; i++) { deinitSlot(i); } window_destroy(window); }
void handle_deinit() { int i; if (timer != NULL) { app_timer_cancel(timer); timer=NULL; } bluetooth_connection_service_unsubscribe(); accel_tap_service_unsubscribe(); tick_timer_service_unsubscribe(); for (i=0; i<NUMSLOTS; i++) { deinitSlot(i); } layer_destroy(mainLayer); window_destroy(window); }