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.
2 parents fb7c945 + c8a1273 commit d0e164fCopy full SHA for d0e164f
iOS/BarcodeScanner/CDVBarcodeScanner.mm
@@ -300,7 +300,7 @@ - (void)barcodeScanCancelled {
300
- (NSString*)setUpCaptureSession {
301
NSError* error = nil;
302
303
- AVCaptureSession* captureSession = [[AVCaptureSession alloc] init];
+ AVCaptureSession* captureSession = [[[AVCaptureSession alloc] init] autorelease];
304
self.captureSession = captureSession;
305
306
AVCaptureDevice* device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
0 commit comments