diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 11c81ffc62..c6e74b02a0 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -926,6 +926,11 @@ gst_v4l2_object_close (GstV4l2Object * v4l2object) g_free (v4l2object->par); v4l2object->par = NULL; } + + if (v4l2object->channel) { + g_free (v4l2object->channel); + v4l2object->channel = NULL; + } return TRUE; }