Memory leak issue
Opened this issue · 2 comments
DavidCMurphy commented
- (NSString *)escapeUrlWithString:(NSString *)string, needs to return an autoreleased string or it causes a memory leak.
- (NSString )escapeUrlWithString:(NSString *)string {
return [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL,
(CFStringRef) string,
NULL,
(CFStringRef) @"!'();:@&=+$,/?%#[]",
kCFStringEncodingUTF8) autorelease];
}
tboetig commented
thanks! I will push an update to this today