diff --git a/modules/videoio/src/cap_avfoundation_mac.mm b/modules/videoio/src/cap_avfoundation_mac.mm index ce6e3d074c..225e2fad62 100644 --- a/modules/videoio/src/cap_avfoundation_mac.mm +++ b/modules/videoio/src/cap_avfoundation_mac.mm @@ -293,7 +293,7 @@ void CvCaptureCAM::stopCaptureDevice() { [mCaptureSession release]; [mCaptureDeviceInput release]; - [mCaptureDevice release]; + // [mCaptureDevice release]; fix #7833 [mCaptureVideoDataOutput release]; [mCapture release];