Hey Folks, just another issue, maybe you have another run on this one: solving one leak brings another one:
xmlcontroller.m
Code:
NSString *theContent = [currentNodeContent stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; //<-- 100% Memory Leak
[currentNodeContent setString:@""];
if([elementName isEqualToString:@"pos"])
{
currentTabelle.place = theContent;
}
... .... .....
if([elementName isEqualToString:@"team"])
{
[table addObject:currentTabelle];
[currentTabelle release];
currentTabelle = nil;
[currentNodeContent release];
currentNodeContent = nil;
}
This just happens whenever the view disappears (i.e. tabbar) and another view gets loaded (with another XMLController) the view which throws a leak is the one that displays the content of the feed of the xmlparser.
tableview.m
Code:
self.xmlcont = [[[XMLController alloc] init] autorelease];
if ([content isEqualToString:@"1. Bundesliga"]){
if(pageNumber == 0){
[xmlcont loadXMLbyURL:@"http://results.baseball-softball.de/extern/standing.php?l=12&xml"];
}
if(pageNumber == 1){
[xmlcont loadXMLbyURL:@"http://results.baseball-softball.de/extern/standing.php?l=11&xml"];
}
... .... .....
}
The View (aboth (tableview)) gets added by a scrollview, in reaction of another leak displayed in this scrollview, i think this is a chain-reaction.
Scrollview.m:
Code:
if (nil == controller.view.superview) { //<- 100% Leak
CGRect frame = scrollView.frame;
frame.origin.x = frame.size.width * page;
frame.origin.y = 0;
controller.view.frame = frame;
[scrollView addSubview:controller.view];
}
I hope you can help me this time as good as the last time

!
thanx 2 all