Permalink
Browse files

Removed leaked memory

CGImageRef has to be explicitly released with CGImageRelease
  • Loading branch information...
1 parent 8892dce commit 3efa86f8e4adf9a9ffe89bafa45af261af15943e @vmalonso vmalonso committed Oct 28, 2012
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.
@@ -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 3efa86f

Please sign in to comment.