CIImage drawAtPoint: ...... retains image??
CIImage drawAtPoint: ...... retains image??
- Subject: CIImage drawAtPoint: ...... retains image??
- From: Nik Youdale <email@hidden>
- Date: Sat, 15 Dec 2007 18:10:41 +1100
I'm trying to draw a CIImage in a view, but have come across the
following problem:
CIImage *drawImage;
.......
NSLog(@"draw image retain count: %d", [drawImage retainCount]);
[drawImage drawAtPoint:drawPoint fromRect:drawRect
operation:NSCompositeSourceOver fraction:1.0];
NSLog(@"draw image retain count: %d", [drawImage retainCount]);
NSLog output:
draw image retain count: 1
draw image retain count: 2
after the drawing operation, the retain count of the image is 1
greater than before the drawing call. From what I understand about
memory management... that shouldn't happen?? This is causing massive
leaks in my program.
Any ideas?
Cheers
Nik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden