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

drawRect Memory Leak #1

Closed
crossdeveloper opened this issue May 14, 2018 · 4 comments
Closed

drawRect Memory Leak #1

crossdeveloper opened this issue May 14, 2018 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@crossdeveloper
Copy link

on drawRect function, occurs memory leak
please add release functions.

CGPathRelease(path);
... ...
CGColorSpaceRelease(colorSpaceRef);
CGGradientRelease(gradient);

@prscX prscX self-assigned this May 14, 2018
@prscX prscX added the bug Something isn't working label May 14, 2018
@alexwasner
Copy link

Wondering where this leak came from. Thanks @crossdeveloper

@crossdeveloper
Copy link
Author

I attached above. on DrawRect function. the above code should be added.

@crossdeveloper
Copy link
Author

Garbage paths, colorSpaceRef and gradient objects should be released. Thanks.

@prscX
Copy link
Owner

prscX commented May 31, 2018

Thanks @crossdeveloper for raising issue and providing the solution.

I have pushed a release with provided solution. Now you can install latest version 0.0.2 and verify the same.

0.0.2

Thanks
</ Pranav >

@prscX prscX closed this as completed May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants