manager: destroy at/gpio modules after the main loop exits

This commit is contained in:
Arnaud Ferraris
2020-12-10 16:56:18 +01:00
parent 87ade8dd27
commit e3387e85ca

View File

@@ -22,9 +22,6 @@ static gboolean quit_timeout_cb(struct EG25Manager *manager)
g_message("Modem down, quitting..."); g_message("Modem down, quitting...");
g_main_loop_quit(manager->loop); g_main_loop_quit(manager->loop);
at_destroy(manager);
gpio_destroy(manager);
return FALSE; return FALSE;
} }
@@ -156,5 +153,8 @@ int main(int argc, char *argv[])
g_main_loop_run(manager.loop); g_main_loop_run(manager.loop);
at_destroy(&manager);
gpio_destroy(&manager);
return 0; return 0;
} }