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