Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Xcode 4 Memory Leak Instruments

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,308
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 25, 2011

No description available.

Category:

Comedy

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • I wouldn't expect Instruments to identify the leak until you released the objects from the array and you couldn't access them any further. If you add a "purge memory" button where you [array removeAllObjects], I'd be you'd get a leak appearing.

  • I just realized you used "alloc" so you must own them, then adding them to the array should cause their release counts to be 2. Right?

  • Aren't those objects going to be autoreleased because you used a convenience method: initWithContentsOfFile: ?

    They will get autoreleased when the method exits. But, I dont know why the image wasn't displayed. Adding them to the array should have triggered a retain on them and therefore should work.

    Thanks for the video, I'm interested to know what's really going on in this situation and especially why the image wasn't displayed.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more