tags:

views:

32

answers:

2

For my long search about nsdata there is some leaks still there .......................When we get value of nsdata from the website url leaks occur.... That website url contains html page means there is no leak in this code ....Else it contains xml page means it gives memory leak..

NSURL *url =[NSURL URLWithString:@"http://www.apple.com/startpage"];
NSData *data ;
data = [NSData dataWithContentsOfURL:url];

NSURL *url =[NSURL URLWithString:@"http://images.apple.com/main/rss/hotnews/hotnews.rss"];
NSData *data ;
data = [NSData dataWithContentsOfURL:url];

I can test with this url ... Is there any reason ?

My leaked object 
GeneralBlock-1536(1.50kb)
NSCFString - (144 Bytes)
NSURL -(32 Bytes)

I test with instrument in simulator and device also... can anyone help me? Thanks

A: 

Judging from your code there's isn't any leaks coming from you, so it's probably leaks from other places, or in fact from Apple's code.

You can check the call tree in instruments to see where the leak actually happens.

KennyTM
A: 

KennyTM i dont know how to accept your answer.... For my last post some one said tick the mark below the answer to give accept rate .. But no tick mark is here .. Can you briefly tell me ? how to do this ? And one more question Why all of you expect accept rate? is this any reason ? I am new to this site .....