Commit ef83b7a2 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Fix memory leak in ios capture

parent 7c9ff4ca
......@@ -162,7 +162,7 @@ static void capture_queue_cleanup(void* p) {
CVImageBufferRef frame = nil;
@synchronized(self) {
@try {
CVImageBufferRef frame = CMSampleBufferGetImageBuffer(sampleBuffer);
frame = CMSampleBufferGetImageBuffer(sampleBuffer);
CVReturn status = CVPixelBufferLockBaseAddress(frame, 0);
if (kCVReturnSuccess != status) {
ms_error("Error locking base address: %i", status);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment