Why am I getting a leak?

I have an application that contains only this:

- (void)viewDidLoad
{
    [super viewDidLoad];

    //Authenticate Local GameCenter player
    [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
     {
         [GKTurnBasedMatch loadMatchesWithCompletionHandler:^(NSArray *matches, NSError *error)
          {

          }];
     }];
}

And right away I get a ton of leaks. Am I doing something wrong? I am using ARC.

enter image description here

+5
source share
1 answer

The loadMatchesWithCompletionHandler:method leak GKTurnBasedMatchwas a known issue in iOS 6.0.1, which was fixed in iOS 6.1 .

PS The method is authenticateWithCompletionHandler:deprecated in iOS 6, but it is not responsible for the leak.

+4
source

All Articles