Re: NSString leak or RedHerring again?
Re: NSString leak or RedHerring again?
- Subject: Re: NSString leak or RedHerring again?
- From: James Cicenia <email@hidden>
- Date: Thu, 5 Mar 2009 13:26:09 -0600
OK That worked but now that I got you:
Why is it complaining about the indicated array below:
while (sqlite3_step(statement) == SQLITE_ROW) {
//find subtype as key in the dict first
if(![aDict objectForKey: [NSString stringWithUTF8String:(char
*)sqlite3_column_text(statement, 2)]]){
NSMutableArray *tmparray = [[NSMutableArray alloc]init]; <<<<<======
===== Says it leaks?
[aDict setValue:tmparray forKey: [NSString stringWithUTF8String:(char
*)sqlite3_column_text(statement, 2)]];
[tmparray release];
}
subtypeArray = [aDict objectForKey: [NSString stringWithUTF8String:
(char *)sqlite3_column_text(statement, 2)]];
[subtypeArray addObject: [NSString stringWithUTF8String:(char
*)sqlite3_column_text(statement, 0)]];
[aDict setValue:subtypeArray forKey: [NSString stringWithUTF8String:
(char *)sqlite3_column_text(statement, 2)]];
}
Thanks again,
James Cicenia
On Mar 5, 2009, at 1:18 PM, Bill Bumgarner wrote:
On Mar 5, 2009, at 10:54 AM, James Cicenia wrote:
AvailableItem is a bare bones class with just synthesize and
nothing else.
Why is it leaking?
You need to release the strings in AvaiableItem's -dealloc method.
b.bum
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden