GUI: Fix memory leak on startup
[pspp] / src / ui / gui / main.c
index dee766cbffb735622c24bb5f3e1e1a88ec336679..cb5519b5f3ba2e3f0e15e189a432b2ad3b49d8b2 100644 (file)
@@ -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__)