ARC Memory Leak in 5.1 only?

Discussion in 'iPhone/iPad Programming' started by larswik, Mar 31, 2012.

  1. macrumors 68000

    Joined:
    Sep 8, 2006
    #1
    I am testing my finished app now to see how well it works before I try and submit my first app. While testing I discovered a memory leak that seemed to be attached to a UIScrollView and gesturing to swipe photos side to side.The odd thing is that it works fine in the simulator for 4.3 and 5.0 but in 5.1 it leaks.

    I did some research on the web and found other people are having the same problem, this one is the exact problem I am having.

    http://stackoverflow.com/questions/9762995/memory-leak-every-time-uiscrollview-is-released

    I also discovered a person who submitted a bug report because it was happening to him too.

    http://openradar.appspot.com/11081198

    If this is a bug with 5.1 do I still submit my app knowing it has a leak that I can not fix?
     
  2. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    It seems that the leak in strdup is a system bug so there's nothing you can do about it except file a bug report. Don't let it stop you from submitting your app.
     
  3. thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #3
    Thanks! I looked all last night for an answer till I came across those posts. Normally I can track down my bugs but this one I had no idea what "strdup" was.

    Thank you.
     
  4. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    This issue has also been discussed in the Apple iOS forum.

    Type this in Terminal, or google it

    man strdup
     

Share This Page