ges-launcher: Don't leak string
authorEdward Hervey <bilboed@bilboed.com>
Wed, 16 Nov 2022 15:20:15 +0000 (16:20 +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 5d20f13..23b2cfe 100644 (file)
@@ -1087,6 +1087,7 @@ _run_pipeline (GESLauncher * self)
       if (!ges_project_load (project, self->priv->timeline, NULL)) {
         ges_printerr ("Could not load timeline: %s\n",
             opts->sanitized_timeline);
+        g_clear_pointer (&opts->sanitized_timeline, &g_free);
         return FALSE;
       }
     }