From 137d38c991704060a9995356a724b0954fed91a2 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 16 Nov 2022 12:44:56 +0100 Subject: [PATCH] ges-launch: Don't leak help string Part-of: --- subprojects/gst-editing-services/tools/ges-launcher.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-editing-services/tools/ges-launcher.c b/subprojects/gst-editing-services/tools/ges-launcher.c index a13238e..5d20f13 100644 --- a/subprojects/gst-editing-services/tools/ges-launcher.c +++ b/subprojects/gst-editing-services/tools/ges-launcher.c @@ -1494,7 +1494,9 @@ _local_command_line (GApplication * application, gchar ** arguments[], if (!opts->load_path && !opts->scenario && !opts->testfile && !opts->list_transitions && (argc <= 1)) { - gst_print ("%s", g_option_context_get_help (ctx, TRUE, NULL)); + gchar *help_str = g_option_context_get_help (ctx, TRUE, NULL); + gst_print ("%s", help_str); + g_free (help_str); g_option_context_free (ctx); *exit_status = 1; goto done; -- 2.7.4