• 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: Problem with Build Analyzer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Build Analyzer


  • Subject: Re: Problem with Build Analyzer
  • From: Dave <email@hidden>
  • Date: Tue, 17 Mar 2015 18:43:54 +0000

Hi,

I’ve narrowed this down to a third party framework and I think that using XCode 6.2 might be a red herring and it may well have happened in 6.1 too.

Is there anything special a third party Framework has to do in order to make the Analyzer report a memory leak if an object is leaked? I thought that any method that has a name that begins in “alloc”, “new”, “init”, “copy” that returns an object, the compiler/analyzer assumes the object has a +1 retain count?

In this example:

-(void) testMethod
{
FrameworkObj*		myFrameworkObj;
NSString*			myString;

myString = [[NSString alloc] initWithFormat:@“%@:%@“,@“Test”,@“001”];
myFrameworkObj = [[FrameworkObj alloc] initWithWidgetName:myString];
}

The analyzer reports a leak of myString, but not of myFrameworkObj.

Does anyone have any idea why?

All the Best
Dave


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Problem with Build Analyzer (From: Dave <email@hidden>)
 >Re: Problem with Build Analyzer (From: Joar Wingfors <email@hidden>)
 >Re: Problem with Build Analyzer (From: Dave <email@hidden>)

  • Prev by Date: Re: Problem with Build Analyzer
  • Next by Date: Re: XCode 6 Debug Navigator
  • Previous by thread: Re: Problem with Build Analyzer
  • Next by thread: Problem with Build Analyzer
  • Index(es):
    • Date
    • Thread