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

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unnecessary retain calls
  • Loading branch information
Georgi Alexandrov committed Mar 19, 2015
1 parent 044de26 commit a44f740
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ios/CDVBarcodeScanner.mm
Expand Up @@ -152,9 +152,6 @@ - (void)scan:(CDVInvokedUrlCommand*)command {
parentViewController:self.viewController
alterateOverlayXib:overlayXib
];
[processor retain];
[processor retain];
[processor retain];
// queue [processor scanBarcode] to run on the event loop

if (preferFrontCamera) {
Expand Down Expand Up @@ -667,7 +664,7 @@ - (id)initWithProcessor:(CDVbcsProcessor*)processor alternateOverlay:(NSString *
//--------------------------------------------------------------------------
- (void)dealloc {
self.view = nil;
// self.processor = nil;
self.processor = nil;
self.shutterPressed = NO;
self.alternateXib = nil;
self.overlayView = nil;
Expand Down

0 comments on commit a44f740

Please sign in to comment.