FROM : Brian Christensen
DATE : Sun Jun 01 09:49:04 2008
On Jun 1, 2008, at 2:55 , Stéphane Droux wrote:
> When I run the program in Mallocdebug, it seems that one of the
> threads used
> by Core Animation to animate the layers doesn't release its memory.
> So it looks like a bug in Core Animation. However, since animating
> non-leaf
> layers is such a core feature of Core Animation, I guess there's
> something
> missing in my code
Are you sure you're getting a leak? I ran your sample code in
Instruments with the Object Alloc and Leaks tools and I didn't detect
any leaks. Object allocation and memory usage remained constant.
Whether l1 or l2 were being animated made no discernible difference.
/brian
DATE : Sun Jun 01 09:49:04 2008
On Jun 1, 2008, at 2:55 , Stéphane Droux wrote:
> When I run the program in Mallocdebug, it seems that one of the
> threads used
> by Core Animation to animate the layers doesn't release its memory.
> So it looks like a bug in Core Animation. However, since animating
> non-leaf
> layers is such a core feature of Core Animation, I guess there's
> something
> missing in my code
Are you sure you're getting a leak? I ran your sample code in
Instruments with the Object Alloc and Leaks tools and I didn't detect
any leaks. Object allocation and memory usage remained constant.
Whether l1 or l2 were being animated made no discernible difference.
/brian






Cocoa mail archive

