From 932adb1968c0f2756f8450c75d112af7ab0c8f48 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Thu, 27 Oct 2016 12:01:55 +0200 Subject: v4l2object: fix extra-controls leak Gst struct v4l2object->extra_controls is created if user sets appropriate option but it is not freed on destruction of v4l2object. https://bugzilla.gnome.org/show_bug.cgi?id=773580 --- sys/v4l2/gstv4l2object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index e7637d2f4..fb87744a1 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -519,6 +519,10 @@ gst_v4l2_object_destroy (GstV4l2Object * v4l2object) gst_caps_unref (v4l2object->probed_caps); } + if (v4l2object->extra_controls) { + gst_structure_free (v4l2object->extra_controls); + } + g_free (v4l2object); } -- cgit v1.2.3