forked from couchbaselabs/TouchDB-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed another crash with global variable
- Loading branch information
1 parent
5bfcc9c
commit 676ff62
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
676ff62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change isn't necessary. If you look closely at the StackOverflow thread you linked to, you'll see that the OP updated his post to say that the real problem was that one of his configurations was building without ARC.
With ARC the -copy call will have no effect because (a) NSCharacterSet is immutable, and (b) the compiler will see it and omit the -retain it would otherwise have generated when assigning to the strong property, so the refcount will be the same as it would have been.