From d34910bf3065e3b04d095444e17fdbab3696261f Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 20 Jan 2016 18:20:43 +1100 Subject: [PATCH] v4l2: Don't free props structure twice. gst_v4l2_device_provider_probe_device() frees the passed props structure, don't free it again in the caller. --- sys/v4l2/gstv4l2deviceprovider.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/v4l2/gstv4l2deviceprovider.c b/sys/v4l2/gstv4l2deviceprovider.c index 399bc13638..e606f846b0 100644 --- a/sys/v4l2/gstv4l2deviceprovider.c +++ b/sys/v4l2/gstv4l2deviceprovider.c @@ -198,7 +198,6 @@ gst_v4l2_device_provider_probe (GstDeviceProvider * provider) it->device_path, "udev-probed", G_TYPE_BOOLEAN, FALSE, NULL); device = gst_v4l2_device_provider_probe_device (self, it->device_path, NULL, props); - gst_structure_free (props); if (device) { gst_object_ref_sink (device);