From: John Darrington Date: Sat, 27 Jun 2020 05:27:25 +0000 (+0200) Subject: GUI: Fix memory leak on startup X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e422096372dfa42ad6bc8b71dfe0e2aa448e6fe3;p=pspp GUI: Fix memory leak on startup --- diff --git a/src/ui/gui/main.c b/src/ui/gui/main.c index dee766cbff..cb5519b5f3 100644 --- a/src/ui/gui/main.c +++ b/src/ui/gui/main.c @@ -280,6 +280,7 @@ process_pre_start_arguments (int *argc, char ***argv) g_option_context_set_ignore_unknown_options (oc, FALSE); g_option_context_add_main_entries (oc, oe, NULL); g_option_context_parse (oc, argc, argv, NULL); + g_option_context_free (oc); } #if ENABLE_RELOCATABLE && defined(__APPLE__)