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.