Authored by Thomas Rasch

o Trying a different order for cache cleanups

... ... @@ -77,8 +77,8 @@
@synchronized (cachedClusterAnnotation)
{
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
[cachedClusterEnclosedAnnotations release]; cachedClusterEnclosedAnnotations = nil;
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
}
@synchronized (annotations)
... ... @@ -167,8 +167,8 @@
@synchronized (cachedClusterAnnotation)
{
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
[cachedClusterEnclosedAnnotations release]; cachedClusterEnclosedAnnotations = nil;
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
}
if (RMProjectedRectIntersectsProjectedRect(quadTreeBounds, northWestBoundingBox))
... ... @@ -418,8 +418,8 @@
{
@synchronized (cachedClusterAnnotation)
{
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
[cachedClusterEnclosedAnnotations release]; cachedClusterEnclosedAnnotations = nil;
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
}
enclosedAnnotations = [NSArray arrayWithArray:annotationsToCheck];
... ... @@ -435,8 +435,8 @@
{
if (cachedClusterAnnotation && [enclosedAnnotations count] != [cachedClusterEnclosedAnnotations count])
{
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
[cachedClusterEnclosedAnnotations release]; cachedClusterEnclosedAnnotations = nil;
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
}
}
... ... @@ -555,8 +555,8 @@
@synchronized (cachedClusterAnnotation)
{
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
[cachedClusterEnclosedAnnotations release]; cachedClusterEnclosedAnnotations = nil;
[cachedClusterAnnotation release]; cachedClusterAnnotation = nil;
}
[cachedEnclosedAnnotations release]; cachedEnclosedAnnotations = nil;
... ...