From e3387e85ca11aafc72544d2923573d62bac9537f Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Thu, 10 Dec 2020 16:56:18 +0100 Subject: [PATCH] manager: destroy at/gpio modules after the main loop exits --- src/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }