Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed three memory leaks in test app

  • Loading branch information...
commit 433da1aad8109f7365cbed3e6eaa413896a01a1b 1 parent 5baccd7
Joerg Jacobsen authored
Showing with 3 additions and 0 deletions.
  1. +2 −0  IMBTestAppDelegate.m
  2. +1 −0  IMBTestFacesBackgroundLayer.m
View
2  IMBTestAppDelegate.m
@@ -458,6 +458,8 @@ - (CALayer*) imageBrowserBackgroundLayerForController:(IMBObjectViewController*)
CGColorRef color = CGColorCreate(colorSpace, fillComponents);
[backgroundLayer setBackgroundColor:color];
+ CFRelease(colorSpace);
+ CFRelease(color);
return backgroundLayer;
}
View
1  IMBTestFacesBackgroundLayer.m
@@ -64,6 +64,7 @@ CGImageRef createImageWithName(NSString* imageName)
if(imageSource){
returnValue = CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);
+ CFRelease(imageSource);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.