Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[ios] Fixes AVCaptureSession leak, thanks @markus-olsson
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed Dec 18, 2012
1 parent 695f524 commit 1e2535a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVBarcodeScanner.mm
Expand Up @@ -300,7 +300,7 @@ - (void)barcodeScanCancelled {
- (NSString*)setUpCaptureSession {
NSError* error = nil;

AVCaptureSession* captureSession = [[AVCaptureSession alloc] init];
AVCaptureSession* captureSession = [[[AVCaptureSession alloc] init] autorelease];
self.captureSession = captureSession;

AVCaptureDevice* device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
Expand Down

0 comments on commit 1e2535a

Please sign in to comment.