Example #1
0
static void deinit(void) {
  window_destroy(window);
  tick_timer_service_unsubscribe();

  text_layer_destroy(time_layer);
  text_layer_destroy(date_layer);
  weather_layer_destroy(weather_layer);

  fonts_unload_custom_font(font_date);
  fonts_unload_custom_font(font_time);

  free(weather_data);
}
Example #2
0
static void deinit(void) 
{
  APP_LOG(APP_LOG_LEVEL_DEBUG, "deinit started");

  tick_timer_service_unsubscribe();

  window_destroy(window);

  time_layer_destroy();
  date_layer_destroy();
  weather_layer_destroy();
  debug_layer_destroy();
  battery_layer_destroy();

  free(weather_data);

  close_network();
}