Skip to content
Browse files

Hotfix: crash in Scanner / SVGWhitespaceCharacterSet

  • Loading branch information...
1 parent 518b48b commit 403b59ee4b682873834f565d68e33f88c3d9097c adamgit committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/UIKit additions/NSCharacterSet+SVGKExtensions.m
View
1 Source/UIKit additions/NSCharacterSet+SVGKExtensions.m
@@ -20,6 +20,7 @@ + (NSCharacterSet *)SVGWhitespaceCharacterSet;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sWhitespaceCharacterSet = [NSCharacterSet characterSetWithCharactersInString:[NSString stringWithFormat:@"%c%c%c%c", 0x20, 0x9, 0xD, 0xA]];
+ [sWhitespaceCharacterSet retain]; // required, this is a non-ARC project.
});
return sWhitespaceCharacterSet;
}

0 comments on commit 403b59e

Please sign in to comment.
Something went wrong with that request. Please try again.