We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacBook Air (Retina, 13-inch, 2018) MacOS Mojave 10.14.6 Xcode 11.3 iPhone XR iOS 12.1 Simulator iPhone8 iOS 13.3
md5: b938231f1c4706b1b9cff131c0024b64
Issue Description:
Both return noErr OSStatus.
This is OK.
let dataBuffer:CMBlockBuffer={ var buffer:CMBlockBuffer! CMBlockBufferCreateWithMemoryBlock( allocator: nil, memoryBlock: UnsafeMutableRawPointer(mutating: (bufferData as NSData).bytes), blockLength: bufferData.count, blockAllocator: kCFAllocatorNull, customBlockSource: nil, offsetToData: 0, dataLength: bufferData.count, flags: 0, blockBufferOut: &buffer) return buffer }()
This will cause memory leak when call VTDecompressionSessionDecodeFrame().
let dataBuffer:CMBlockBuffer={ var buffer:CMBlockBuffer! CMBlockBufferCreateWithMemoryBlock( allocator: nil, memoryBlock: &bufferData, blockLength: bufferData.count, blockAllocator: kCFAllocatorNull, customBlockSource: nil, offsetToData: 0, dataLength: bufferData.count, flags: 0, blockBufferOut: &buffer) return buffer }()
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
Comment by Kyle Macomber (JIRA)
&bufferData passes a pointer to the local variable containing the Data struct not to Data’s bytes, which in this case appears to be a programmer error
No branches or pull requests
Environment
MacBook Air (Retina, 13-inch, 2018) MacOS Mojave 10.14.6
Xcode 11.3
iPhone XR iOS 12.1
Simulator iPhone8 iOS 13.3
Additional Detail from JIRA
md5: b938231f1c4706b1b9cff131c0024b64
Issue Description:
Both return noErr OSStatus.
This is OK.
This will cause memory leak when call VTDecompressionSessionDecodeFrame().
The text was updated successfully, but these errors were encountered: