Re: Memory Leak in AudioHardwareGetProperty
Re: Memory Leak in AudioHardwareGetProperty
- Subject: Re: Memory Leak in AudioHardwareGetProperty
- From: Jeff Moore <email@hidden>
- Date: Mon, 24 Jul 2006 11:54:08 -0700
That's not a leak, that's the HAL initializing itself. That memory
will get released when the process is reaped.
On Jul 21, 2006, at 11:07 AM, Art Gillespie wrote:
The code below triggers a bunch of calls to new(), resulting in
2084 bytes on the heap that never get deleted.
---
AudioDeviceID ret;
UInt32 theSize = sizeof(AudioDeviceID);
AudioHardwareGetProperty
( kAudioHardwarePropertyDefaultOutputDevice,
&theSize,
&ret );
--
I've tried making the same call again immediately; no additional
allocations are made so I'm guessing that either the allocations
are just one-time setup or else I'm doing something wrong.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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