Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Hi all,


I am gettiing a leak-heap (using Instruments) for the line

Code:
NSDateComponents *todayComponents = [gregorianCalendar components:NSWeekdayCalendarUnit fromDate:today];

I am calling this line only once in my code, and moreover its a autorelease method.

Why so?
 
Hi all,


I am gettiing a leak-heap (using Instruments) for the line

Code:
NSDateComponents *todayComponents = [gregorianCalendar components:NSWeekdayCalendarUnit fromDate:today];

I am calling this line only once in my code, and moreover its a autorelease method.

Why so?

That's weird. In my app, the leaking object was gregorianCalendar not the todayComponents.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.