Hi, I'm using ARC and using Mavdacted and DP5 but I don't think this is related to anything under NDA. The static analyzer is complaining about the following:
-(instancetype)initWithPreset:(NSString *)preset size:(CGPoint)size { CGContextRef context = CreateCGBitmapContextFromPresetSize(preset, size); if (!context) self = NULL; if (self) self = [super initWithCGContent:context baseObjectType:MMCGBitmapContextKey]; if (self) _preset = preset; else { if (context) CGContextRelease(context); } return self; } It is reporting that an object is leaked, but I can't tell if it is talking about preset or context. It just states "Object leaked: allocated object is not referenced later in this execution path and has a retrain count of +1" It reports this on the line _preset = preset. But my feeling is that the analyzer is talking about context. Normally I'd consider that an object passed into an init method will consume a retain count. I can get all of the analyzer messages that precede this if you need them and a picture with all the pretty arrows pointing every which way. Kevin _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com