From 3e2b8df10b854f421be5aeaf51c8b568a8bb4f82 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 10 Nov 2021 16:08:58 +0200 Subject: [PATCH 23/23] fcmp gtk3: Quit by exiting gtk main loop Return cleanly out of main loop and via the end of main() function. It used to exit() from inside the main loop. See osdn #43187 Signed-off-by: Marko Lindqvist --- tools/fcmp/mpgui_gtk3.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/fcmp/mpgui_gtk3.c b/tools/fcmp/mpgui_gtk3.c index 7777315931..a006656003 100644 --- a/tools/fcmp/mpgui_gtk3.c +++ b/tools/fcmp/mpgui_gtk3.c @@ -70,12 +70,7 @@ static gboolean quit_dialog_callback(void); **************************************************************************/ static void modinst_quit(void) { - close_mpdbs(); - - fcmp_deinit(); - cmdline_option_values_free(); - - exit(EXIT_SUCCESS); + gtk_main_quit(); } /**********************************************************************//** -- 2.33.0