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

Fix EXC_BAD_ACCESS from copying block after the matcher is freed #39

Merged
merged 1 commit into from
Jul 25, 2013

Conversation

jspahrsummers
Copy link
Contributor

After updating to 0.2.2, I ran into some EXC_BAD_ACCESS errors in -applyMatcher:to:. My theory was that the matcher got prematurely freed somewhere.

Within _EXPMatcherImplementationEnd, the matcher is freed before the block gets a chance to retain it (since blocks only retain captured objects when copied). Moving the block copy earlier than the release seems to fix the issue.

blakewatters added a commit that referenced this pull request Jul 25, 2013
Fix EXC_BAD_ACCESS from copying block after the matcher is freed
@blakewatters blakewatters merged commit b834f12 into specta:master Jul 25, 2013
@blakewatters
Copy link
Member

Looks good, merged

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