• 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: Leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leaks


  • Subject: Re: Leaks
  • From: "Mark's Studio" <email@hidden>
  • Date: Sun, 3 Oct 2004 15:30:06 +0200

Well , that code is actually working ?, otherwise it would have leaked at lot more.

Process 6406: 4905 nodes malloced for 1312 KB
Process 6406: 9 leaks for 432 total leaked bytes.

Leak: 0x00320b60 size=48
0x00000002 0x00000001 0x00001000 0x00699000
0x00000001 0x00001000 0x006a3000 0x55555555
0x55555555 0x55555555 0x55555555 0x55555555
Call stack: [thread 3cd7]: | 0x0 | _dyld_start | 0x3cd8 | 0x11960 | 0x123e4 | 0x108a0 | 0xf040 | AudioUnitInitialize | CallComponent | 0x604464 | AUBase::ComponentEntryDispatch(ComponentParameters*, AUBase*) | AUBase::DoInitialize() | SpectrumAU::Initialize() | malloc | malloc_zone_malloc

to me it looks like it something to do with parameters?

but should i use AUBase::PreDestructor() instead?



On 3/10-2004, at 14:36, Marc Poirier wrote:

On Oct 3, 2004, at 7:26 AM, Mark's Studio wrote:

Im having some leaks :(

What is the best way to track them down ?

do i need to free anything other than what i've allocated memory for ?

SpectrumAU::~SpectrumAU()
{
if(IsInitialized()){

This condition will never be true. There is a pre-destructor that handles Unitializing before the destructor gets called. Unless your Unitialize method also does the same freeing, then this would explain your leaks.

Marc


Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden

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

This email sent to email@hidden

References: 
 >Leaks (From: "Mark's Studio" <email@hidden>)
 >Re: Leaks (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: Problems Compiling Examples from XcodeTools1.5__CD Release
  • Next by Date: Format mismatch
  • Previous by thread: Re: Leaks
  • Next by thread: Re: Leaks
  • Index(es):
    • Date
    • Thread