Post

Replies

Boosts

Views

Activity

Reply to IOSurface objects aren't released in ScreenCaptureKit
Thank you for your question. Got CVImageBufferRef in this way: CMSampleBufferRef sampleBuffer; CVImageBufferRef cvImageBufferRef = CMSampleBufferGetImageBuffer(sampleBuffer); Getting CVImageBufferRef in this way, I do not own the returned CVImageBufferRef. Therefore, I shouldn't release it. Also, I tried to release CMSampleBuffer in this way: { CFRelease(_sampleBuffer); _sampleBuffer = NULL; } But I got crash when CFRelease is called.
May ’24