From c4a63f6a86852c59b0958d42f6d2bbf0328a3bd6 Mon Sep 17 00:00:00 2001 From: Alessandro Trebbi Date: Sun, 23 Mar 2014 22:00:16 +0100 Subject: [PATCH] - --- modules/highgui/src/cap_avfoundation.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/highgui/src/cap_avfoundation.mm b/modules/highgui/src/cap_avfoundation.mm index 35b52f0..001ef02 100644 --- a/modules/highgui/src/cap_avfoundation.mm +++ b/modules/highgui/src/cap_avfoundation.mm @@ -1313,6 +1313,8 @@ bool CvVideoWriter_AVFoundation::writeFrame(const IplImage* iplimage) { } //cleanup + CFRelease(cfData); + CVPixelBufferRelease(pixelBuffer); CGImageRelease(cgImage); CGDataProviderRelease(provider); CGColorSpaceRelease(colorSpace); -- 2.7.4