PhotoMap Memory Leak

I have encountered nasty memory leak in the Apple sample project. This is MapKit sample project which demonstrates how to do clustering. All you need to reproduce this is to spin map around, memory usage grows non stop.

You can download project here https://developer.apple.com/library/ios/samplecode/PhotoMap/Introduction/Intro.html


I started Stack Overflow question. With screenshot. http://stackoverflow.com/questions/36502087/apple-sample-project-photomap-has-a-memory-leak

Accepted Reply

Now there's solution on Stack Overflow:

double gridSize = fabs(MKMapPointForCoordinate(rightCoordinate).x - MKMapPointForCoordinate(leftCoordinate).x);

Replies

Now there's solution on Stack Overflow:

double gridSize = fabs(MKMapPointForCoordinate(rightCoordinate).x - MKMapPointForCoordinate(leftCoordinate).x);