I've ran Build and Analyze on my XML parsing code and found out the following:
How could I fix it?
I've ran Build and Analyze on my XML parsing code and found out the following:
How could I fix it?
[channelListing addObject:[[channelListingItem copy] autorelease]];
You need to release the copy of channelListingItem
. As you're passing it to the channelListing
, you can just autorelease
it as it will be "owned" by that mutable collection.
you need to release it as said, the channelListingItem is retaining it.