void handle_deinit(void) { status_bar_deinit(); // Always have 40B memory leak due to tick_timer_service_subscribe() #ifdef PBL_ROUND round_bottom_bar_deinit(); #endif favorites_deinit(); stations_deinit(); locale_deinit(); settings_deinit(); message_deinit(); // Always have 16B memory leak due to app_message_set_context() }
void screen_exit(void) { if (mode_fn->close != NULL) mode_fn->close(); screen_list_exit(); string_list_free(screen.find_history); g_free(screen.buf); g_free(screen.findbuf); title_bar_deinit(&screen.title_bar); delwin(screen.main_window.w); progress_bar_deinit(&screen.progress_bar); status_bar_deinit(&screen.status_bar); #ifndef NCMPC_MINI if (screen.welcome_source_id != 0) g_source_remove(screen.welcome_source_id); #endif }