projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cddadc0
)
Fixed cvRetrieveFrame memory leak under AVFoundation (ticket #1837)
author
Alexander Reshetnikov
<no@email>
Mon, 23 Apr 2012 16:12:24 +0000
(16:12 +0000)
committer
Alexander Reshetnikov
<no@email>
Mon, 23 Apr 2012 16:12:24 +0000
(16:12 +0000)
modules/highgui/src/cap_avfoundation.mm
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_avfoundation.mm
b/modules/highgui/src/cap_avfoundation.mm
index
e189224
..
0a70d7e
100644
(file)
--- a/
modules/highgui/src/cap_avfoundation.mm
+++ b/
modules/highgui/src/cap_avfoundation.mm
@@
-969,6
+969,8
@@
IplImage* CvCaptureFile::retrieveFramePixelBuffer() {
CVPixelBufferUnlockBaseAddress(pixels, 0);
CVBufferRelease(pixels);
+ CMSampleBufferInvalidate(sampleBuffer);
+ CFRelease(sampleBuffer);
[localpool drain];
return bgr_image;