Commit 932adb19 authored by Tobias Schneider's avatar Tobias Schneider Committed by Nicolas Dufresne

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
parent 60d30db9
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment