void agent_destroy(struct agent* agent) { if (NULL != agent) { network_manager_destroy(agent->network); command_manager_destroy(agent->command); event_manager_destroy(agent->event); free(agent); agent = NULL; } }
static void deinit(void) { APP_LOG(APP_LOG_LEVEL_DEBUG, "deinit"); event_manager_destroy(event_manager); if (splash_window) { splash_window_destroy(splash_window); } if (menu_window) { menu_window_destroy(menu_window); } }