I have this in my header file:

*

**

@property (nonatomic, retain) UIImagePickerController* imagePicker;
**

*
The analyzer is complaining about lines like this (but not always):

*

self.imagePicker = [[UIImagePickerController alloc] init];

[self.imagePicker release];

*
I do this in many places, but in a few of them the analyzer says:

*Property returns an Objective-C object with a +0 retain count*
*Incorrect decrement of the reference count of an object that is not owned
at this point by the caller*

Is this just a bug in the analyzer?  I can find no difference between the
times it makes this complaint and the many more times that it doesn't.

Thanks for any insight.
_______________________________________________

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

Reply via email to