• 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: Double-free in DLS unitialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double-free in DLS unitialize


  • Subject: Re: Double-free in DLS unitialize
  • From: Christopher Corbell <email@hidden>
  • Date: Wed, 25 Jun 2003 08:53:52 -0700

This is just a third confirmation of this bug, which has appeared in my
app for some time when disposing a music sequence that uses
an AUGraph with multiple DLS units.

Bill S. and folks at Apple, is there some correct call sequence that we may all
be overlooking, or should this get a bug report?

Thanks,
Christopher

On Wednesday, June 25, 2003, at 01:08 AM, Michael Norris wrote:

I am seeing a disturbing double-free warning when I dispose an AUGraph
that has an Apple DLS device instantiated within it. I've traced the
problem down to a DisposePtr call made from within "NoteScheduler".
I've pasted the stack crawl below.

I'm getting the exact same error when releasing a valid MusicSequence, which is attached to the built-in DLS device.

Doesn't seem to affect life, but it's worrying to see.

My code goes something like:

status = NewMusicPlayer(&player);
// start loop

status = NewMusicSequence(&sequence);
status = MusicPlayerSetSequence (player, sequence);
status = MusicSequenceNewTrack(sequence,&track);
status = MusicPlayerPreroll (player);
status = MusicPlayerStart (player);
status = MusicSequenceDisposeTrack(sequence,track)
status = DisposeMusicSequence(sequence)

// end loop

It's at that point that I get the malloc() warning, but only on the second time around the loop and subsequent iterations. The sequence variable is definitely valid before calling DisposeMusicSequence, as I poll it for certain information, which it returns correctly.
[....]
==============================
iPiano
Music software for Mac OS X
http://www.machotshot.com/iPiano/
==============================
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Double-free in DLS unitialize
      • From: daniel <email@hidden>
References: 
 >Re: Double-free in DLS unitialize (From: Michael Norris <email@hidden>)

  • Prev by Date: Render Quality and DLS synth
  • Next by Date: Re: Double-free in DLS unitialize
  • Previous by thread: Re: Double-free in DLS unitialize
  • Next by thread: Re: Double-free in DLS unitialize
  • Index(es):
    • Date
    • Thread