HI:

I know the leak is in next 2 lines
I have commented all the code except these 2 lines.

// NSTimeInterval
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit; NSDateComponents *dateSegments = [gregorian components:unitFlags fromDate:[NSDate date]];

I am not releasing gregorian, because I never used retain.
Same is true with dateSegments.

Can someone help me.

Why I have a leak? I am unable to understand?

Thanks in advance.

Agha
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to