Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed leaked memory

CGImageRef has to be explicitly released with CGImageRelease
  • Loading branch information...
commit 3efa86f8e4adf9a9ffe89bafa45af261af15943e 1 parent 8892dce
@vmalonso vmalonso authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.