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

Answered by borisy in 196152022

Now there's solution on Stack Overflow:

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

Now there's solution on Stack Overflow:

double gridSize = fabs(MKMapPointForCoordinate(rightCoordinate).x - MKMapPointForCoordinate(leftCoordinate).x);
PhotoMap Memory Leak
 
 
Q