Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRFilledPolygon's initWithPoints shouldn't return an autoreleased object #2

Closed
proth opened this issue Jul 9, 2011 · 1 comment
Closed

Comments

@proth
Copy link

proth commented Jul 9, 2011

init methods never return autoreleased objects in obj-c.

initWithPoints: (NSArray *) polygonPoints andTexture: (CCTexture2D *) fillTexture

returns an autoreleades PRFilledPolygon while

initWithPoints:(NSArray *)polygonPoints andTexture:(CCTexture2D *)fillTexture usingTriangulator: (id<PRTriangulator>) polygonTriangulator

does not.

@asinesio
Copy link
Owner

No, it doesn't -- it returns a filled polygon that has an autoreleased triangulator. The polygon itself is not autoreleased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants