Skip to content

Commit

Permalink
Hotfix: crash in Scanner / SVGWhitespaceCharacterSet
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgit authored and adamgit committed Apr 6, 2013
1 parent 518b48b commit 403b59e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/UIKit additions/NSCharacterSet+SVGKExtensions.m
Expand Up @@ -20,6 +20,7 @@ + (NSCharacterSet *)SVGWhitespaceCharacterSet;
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
sWhitespaceCharacterSet = [NSCharacterSet characterSetWithCharactersInString:[NSString stringWithFormat:@"%c%c%c%c", 0x20, 0x9, 0xD, 0xA]]; sWhitespaceCharacterSet = [NSCharacterSet characterSetWithCharactersInString:[NSString stringWithFormat:@"%c%c%c%c", 0x20, 0x9, 0xD, 0xA]];
[sWhitespaceCharacterSet retain]; // required, this is a non-ARC project.
}); });
return sWhitespaceCharacterSet; return sWhitespaceCharacterSet;
} }
Expand Down

0 comments on commit 403b59e

Please sign in to comment.