• 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
Memory Leak in AudioHardwareGetProperty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory Leak in AudioHardwareGetProperty


  • Subject: Memory Leak in AudioHardwareGetProperty
  • From: "Art Gillespie" <email@hidden>
  • Date: Fri, 21 Jul 2006 11:07:55 -0700

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.

Thanks for any insight,

Art
 _______________________________________________
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

  • Follow-Ups:
    • Re: Memory Leak in AudioHardwareGetProperty
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: Cannot Load Audio Unit
  • Next by Date: Re: Audio data format and file type - how to match?
  • Previous by thread: Re: Cannot Load Audio Unit
  • Next by thread: Re: Memory Leak in AudioHardwareGetProperty
  • Index(es):
    • Date
    • Thread