• 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: William Stewart <email@hidden>
  • Date: Mon, 04 Oct 2004 11:35:55 -0700

There's a Cleanup method that you should just impliment and the AU Base
class will take care of calling this for you when it should

Bill

On 4/10/04 11:14 AM, "Doug Wyatt" <email@hidden> wrote:

>
> On Oct 4, 2004, at 11:11, Doug Wyatt wrote:
>
>> On Oct 3, 2004, at 4:26, 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()){
>>>
>>>     free(gSourceBufferL);
>>> free(gSourceBufferR);
>>> free(spectrumAudioBufferList);
>>>     }
>>> }
>>
>> Mark Poirier was right; IsInitialized() is the wrong test.
>>
>> A more robust way to code this pattern is to ensure the pointers are
>> initialized to NULL in your constructor, then free them in the
>> destructor when they are non-NULL.
>>
>> Doug
>>
>
>  _______________________________________________
> 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

--
mailto:email@hidden
tel: +1 408 974 4056

__________________________________________________________________________
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
__________________________________________________________________________



 _______________________________________________
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: 
 >Re: Leaks (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: Parameter Value Strings and CF retain/release issues
  • Next by Date: Re: detailed linker results
  • Previous by thread: Re: Leaks
  • Next by thread: Format mismatch
  • Index(es):
    • Date
    • Thread