summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Schneider <tobias.schneider@voiceinterconnect.de>2016-10-27 12:01:55 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-10-31 12:06:27 -0400
commit932adb1968c0f2756f8450c75d112af7ab0c8f48 (patch)
tree5649d4d74b2304abcd7d05300a3d23c5b263eff2
parent60d30db912a1aedd743e66b9dcd2e21d71fbb24f (diff)
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
-rw-r--r--sys/v4l2/gstv4l2object.c4
1 files changed, 4 insertions, 0 deletions
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);
}