Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get a leak?

I have an app that only contains 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 use ARC.

enter image description here

like image 522
BlackMouse Avatar asked Oct 04 '22 16:10

BlackMouse


1 Answers

The leak in loadMatchesWithCompletionHandler: method of GKTurnBasedMatch was a known issue in iOS 6.0.1, which has been fixed in iOS 6.1.

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

like image 144
Sergey Kalinichenko Avatar answered Oct 13 '22 10:10

Sergey Kalinichenko