is it a leak in Framework or in my code?

Discussion in 'iOS Programming' started by sujithkrishnan, Oct 15, 2008.

  1. sujithkrishnan macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    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?
     
  2. annguyen macrumors newbie

    Joined:
    Oct 2, 2008
    #2
    That's weird. In my app, the leaking object was gregorianCalendar not the todayComponents.
     

Share This Page