We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f9089 commit cd7d8ffCopy full SHA for cd7d8ff
package/ios/Core/CameraSession+Configuration.swift
@@ -61,6 +61,15 @@ extension CameraSession {
61
62
// Remove all outputs
63
for output in captureSession.outputs {
64
+ // The following delegates are weak references
65
+ // so cleaning them up is not strictly necessary
66
+ // from a safety standpoint.
67
+ // It is good to mark that between this point
68
+ // and logic further down configureOutput()
69
+ // messages to delegate would be in an undefined
70
+ // state and in with delegate == self the weak
71
+ // references wouldn't be cleared during that
72
+ // window.
73
if let metadataOutput = output as? AVCaptureMetadataOutput {
74
metadataOutput.setMetadataObjectsDelegate(nil, queue: nil)
75
}
0 commit comments