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

question about leak in MagicalRecordHelpers.m #57

Closed
Stark-Isaac opened this issue Aug 8, 2011 · 1 comment
Closed

question about leak in MagicalRecordHelpers.m #57

Stark-Isaac opened this issue Aug 8, 2011 · 1 comment

Comments

@Stark-Isaac
Copy link

hello, I found this in your MagicalRecordHelper.m.
In dateFromString method, you allocate formatter object but not releasing.
So I change this line to
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];

Is't correct?

@casademora
Copy link
Member

This is not the same
The code you found is for use with the new ARC compiler, which inserts releases for you automatically….

If you want to use MagicalRecord under a previous SDK, please download the 1.0 tag of MagicalRecord from github.

Thanks,
Saul

On Aug 7, 2011, at 8:19 PM, tronyx wrote:

hello, I found this in your MagicalRecordHelper.m.
In dateFromString method, you allocate formatter object but not releasing.
So I change this line to
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];

Is't correct?

Reply to this email directly or view it on GitHub:
#57

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

No branches or pull requests

2 participants