From 9cee8620c3ef75ae8c3511922add4e2607628d7c Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 13 Feb 2019 16:57:58 +0000 Subject: test: v4l2_device: release capture device resources Ensure that the cleanup operation releases the device and resources. Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- test/v4l2_device/v4l2_device_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/v4l2_device/v4l2_device_test.cpp b/test/v4l2_device/v4l2_device_test.cpp index 2bdf8cfe..4225291b 100644 --- a/test/v4l2_device/v4l2_device_test.cpp +++ b/test/v4l2_device/v4l2_device_test.cpp @@ -63,5 +63,9 @@ void V4L2DeviceTest::cleanup() { media_->release(); + capture_->streamOff(); + capture_->releaseBuffers(); + capture_->close(); + delete capture_; }; -- cgit v1.2.1