views:

293

answers:

1

i am getting following memory leaks for webview

    initWebUILocalStorageSupport
    MobileQuickLookLibrary()

and here is my code, i dont know what i am missing.

NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f];
[theRequest setHTTPMethod:@"POST"];

NSData *data = [self GenerateData];
if (data) {
    [theRequest setHTTPBody:data];
}
[webView loadRequest:theRequest];

i hope my question is clear.thanks

EDIT: adding code for GenerateData

NSArray * results = [self.managedObjectContext executeFetchRequest:request error:&error];
if (!error) {
    for (Items *item in results) {

    }
    NSString *theBodyString = [[CJSONSerializer serializer] serializeDictionary:theRequestDictionary];
    theBodyData = [theBodyString dataUsingEncoding:NSUTF8StringEncoding];
    }
return theBodyData;
A: 

Are you testing the simulator or on a real device?

The simulator is known to have some memory leaks that are not present in real devices.

Ben S
on simulator...
Nnp
I would try on a real device first before looking for bugs in your code.
Ben S
thanks Ben ,let me try that...
Nnp