Re: NSURLRequest : Unable to Quit App after Syn call to Server.
Re: NSURLRequest : Unable to Quit App after Syn call to Server.
- Subject: Re: NSURLRequest : Unable to Quit App after Syn call to Server.
- From: Dominik Pich <email@hidden>
- Date: Sat, 17 May 2008 21:23:26 +0200
// -----------------------
// 4) Convert Synchronous Data into Human-Readable String
(Unicode 8) format:
NSString *serverDataString = [[[NSString alloc]
initWithData:serverData encoding:NSUTF8StringEncoding] retain];
This is an extra retain.
[[soapResponse layoutManager]replaceTextStorage:
[[NSTextStorage alloc] initWithString:serverDataString]];
you also leak the allocated NSTextStorage and in consquence every
serverDataString
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden