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
This commit is contained in:
Tobias Schneider 2016-10-27 12:01:55 +02:00 committed by Nicolas Dufresne
parent 60d30db912
commit 932adb1968

View file

@ -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);
}