title: core bluetooth crash in iOS 7
body: <p>I have developed a bluetooth app, which runs fine on iOS 6, but when I run it on iOS 7 the application crashes in the -didDiscoverPeripheral call back. The crash info suggests that a release is called on the CBPeripheral object. I have used ARC for memory management, here is my declaration,initialisation  of the CBPeripheral object and the call back code:</p>
  
  <pre><code>@interface BrLEDiscovery () &lt;CBCentralManagerDelegate, CBPeripheralDelegate&gt; {
      CBCentralManager    *centralManager;
      CBPeripheral *currentperipheral;
      BOOL                pendingInit;
  }
  
  
  - (id) init
  {
      self = [super init];
      if (self) {
          pendingInit = YES;
          centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:dispatch_get_main_queue()];
         currentperipheral=[[CBPeripheral alloc]init];
          founddevice=FALSE;
          foundPeripherals = [[NSMutableArray alloc] init];
          connectedServices = [[NSMutableArray alloc] init];
  
      }
      return self;
  }
  
  - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI
  { NSLog(@"Found Peripheral %@",[peripheral name]);
  
      if ([[peripheral name] isEqualToString:peripheralname]) {
          founddevice=TRUE;
          currentperipheral=peripheral;
  
          if (![foundPeripherals containsObject:peripheral]) {
              [foundPeripherals addObject:peripheral];
              [discoveryDelegate discoveryDidRefresh];
              [discoveryDelegate DiscoveryDidFindDevice:peripheral];
  
          }
  
          [RecursiveScanTimer invalidate];
      }
  
  
  }
  </code></pre>