Merge pull request #321 from tomwans/master
Fix an issue where _skippedCharacterSet would get dealloc'd early
This commit is contained in:
commit
904d6ba50d
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ NSSet * AFContentTypesFromHTTPHeader(NSString *string) {
|
|||
static NSCharacterSet *_skippedCharacterSet = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
_skippedCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@" ,"];
|
||||
_skippedCharacterSet = [[NSCharacterSet characterSetWithCharactersInString:@" ,"] retain];
|
||||
});
|
||||
|
||||
if (!string) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue