v4l2src-renegotiate: Don't leak pipeline desc string

This commit is contained in:
Nicolas Dufresne 2017-09-13 11:33:33 -04:00
parent 3975e87136
commit 22a5f56f2a

View file

@ -135,6 +135,7 @@ main (gint argc, gchar ** argv)
desc = g_strdup_printf ("v4l2src name=src device=\"%s\" io-mode=\"%s\" "
"! capsfilter name=cf ! %s", device, io_mode, videosink);
pipeline = gst_parse_launch (desc, &error);
g_free (desc);
if (!pipeline) {
g_print ("failed to create pipeline: %s", error->message);
g_error_free (error);