mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 23:32:14 +02:00
manager: destroy at/gpio modules after the main loop exits
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user