ges-launcher: fix double free when argument is invalid

https://bugzilla.gnome.org/show_bug.cgi?id=754783
This commit is contained in:
Justin Kim 2015-09-09 23:32:19 +09:00 committed by Thibault Saunier
parent f046bb5a03
commit 32c694cc00

View file

@ -706,7 +706,9 @@ _local_command_line (GApplication * application, gchar ** arguments[],
if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
g_printerr ("Error initializing: %s\n", error->message);
g_option_context_free (ctx);
g_error_free (error);
*exit_status = 1;
return TRUE;
}
if (opts->inspect_action_type) {