Hello all,
I have written following code:
But i got a memory leak when execution completes.
These are two memory leaks that i don't able to understand:
1. NSMachPort
2. CFRunLoopSource
Any body have any idea about this, please let me know.
thanks in advance.
I have written following code:
Code:
NSURL *theURL = [NSURL URLWithString:strURL];
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:theURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f];
[theRequest setHTTPMethod:@"POST"];
[theRequest setHTTPBody:streamBuffer];
NSURLResponse *theResponse;
NSError *theError;
NSData *theResponseData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&theResponse error:&theError];
But i got a memory leak when execution completes.
These are two memory leaks that i don't able to understand:
1. NSMachPort
2. CFRunLoopSource
Any body have any idea about this, please let me know.
thanks in advance.