Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image allocation



I'm working on a Cocoa app that uses QC comps for full-screen display of a variety of things, via a set of QCRenderers.

In a number of cases I'm passing images to QC ports for display, and as the data updates the images for those ports change, so I pass the new ones over. Although I am releasing all of the old images in my code, and setting the ports to nil before setting up and passing the new ones, the memory isn't getting freed. Looking with ObjectAlloc shows the NSImage count growing with each allocation.

Does the QCRenderer retain the NSImage when it gets it?

Obviously this could be something in my Cocoa code, but I've gone over it quite a bit, and I'm quite sure my retains are balanced with releases.

Any other advice about where to look would be great.

Thanks

-e
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.