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

Fixed ZKEnvelope leak #33

Merged
merged 2 commits into from
Nov 2, 2016
Merged

Fixed ZKEnvelope leak #33

merged 2 commits into from
Nov 2, 2016

Conversation

pilot34
Copy link
Contributor

@pilot34 pilot34 commented Nov 2, 2016

Hello. I think there was something strange with env in ZKEnvelope. There was either a leak or a zombie.

state = inEnvelope;
}

- (void)dealloc {
[super dealloc];
[env release];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these 2 should be the other way around.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@superfell superfell merged commit ac248fb into superfell:master Nov 2, 2016
@superfell
Copy link
Owner

Thanks!

@superfell
Copy link
Owner

BTW, are you using ZKEnvelope in some different way to have run into this?

@pilot34
Copy link
Contributor Author

pilot34 commented Nov 3, 2016

No, only from public methods of ZKSforceClient. I just profiled my app with instruments and found 2 memory leaks by stacktrace: this from zkEnvelope and second from ZKNamespacedName, that you've already fixed earlier.

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

Successfully merging this pull request may close these issues.

2 participants