Skip to content
Browse files

Merge pull request #11 from valonso/master

Removed leaked memory
  • Loading branch information...
2 parents 8892dce + 3efa86f commit 450a70d65c25bc4787f1a6d594b5165e4c5f6ce1 @kishikawakatsumi committed
Showing with 1 addition and 0 deletions.
  1. BIN .DS_Store
  2. +1 −0 ClassicMap/WMOverlayView.m
View
BIN .DS_Store
Binary file not shown.
View
1 ClassicMap/WMOverlayView.m
@@ -146,6 +146,7 @@ - (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContex
CGContextTranslateCTM(context, 0.0f, image.size.height / scale);
CGContextScaleCTM(context, 1.0f, -1.0f);
CGContextDrawImage(context, CGRectMake(0.0f, 0.0f, image.size.width / scale, image.size.height / scale), croppedImage);
+ CGImageRelease(croppedImage);
}
} else {
UIGraphicsPushContext(context);

0 comments on commit 450a70d

Please sign in to comment.
Something went wrong with that request. Please try again.