• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString leak or RedHerring again?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSString leak or RedHerring again?
      • From: Keary Suska <email@hidden>
References: 
 >NSString leak or RedHerring again? (From: James Cicenia <email@hidden>)
 >Re: NSString leak or RedHerring again? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: NSString leak or RedHerring again?
  • Next by Date: [Q] NSObject's poseAsClass - Replacement?
  • Previous by thread: Re: NSString leak or RedHerring again?
  • Next by thread: Re: NSString leak or RedHerring again?
  • Index(es):
    • Date
    • Thread