views:

62

answers:

3

I've ran Build and Analyze on my XML parsing code and found out the following:

alt text

How could I fix it?

+8  A: 
[channelListing addObject:[[channelListingItem copy] autorelease]];
cobbal
+1  A: 

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.

Graham Lee
A: 

you need to release it as said, the channelListingItem is retaining it.

Antwan van Houdt