Skip to content

Instantly share code, notes, and snippets.

@Tricertops
Created June 11, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tricertops/6498d36497d0a66611cc to your computer and use it in GitHub Desktop.
Save Tricertops/6498d36497d0a66611cc to your computer and use it in GitHub Desktop.
Recursive CFRelese() crash.
NSArray *foundationImmutableArray = @[];
NSArray *coreFoundationArray = (__bridge_transfer NSArray *)CFArrayCreateCopy(NULL, (__bridge_retained CFArrayRef)foundationImmutableArray);
id coreFoundationCopy = [[coreFoundationArray class] new];
coreFoundationCopy = nil; // Recursive CFRelease() crash!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment