Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

fix another autorelease issue when block is returned from function #8

Merged
merged 1 commit into from
Jul 5, 2011
Merged

Conversation

kaiwu
Copy link
Contributor

@kaiwu kaiwu commented Jul 4, 2011

Hi,

The pull request contains following tests, and fixes another autorelease issue

  • NSSet+BlocksKit
  • NSObject+BlocksKit

The block returned from a function needs to be copied to heap

return [[wrapper copy] autorelease];

zwaldowski added a commit that referenced this pull request Jul 5, 2011
fix another autorelease issue when block is returned from function
@zwaldowski zwaldowski merged commit d351309 into BlocksKit:master Jul 5, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants