ges-launch: Don't leak help string
authorEdward Hervey <edward@centricular.com>
Wed, 16 Nov 2022 11:44:56 +0000 (12:44 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 18 Nov 2022 07:22:23 +0000 (07:22 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3428>

subprojects/gst-editing-services/tools/ges-launcher.c

index a13238e..5d20f13 100644 (file)
@@ -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;