Re: Double-free in DLS unitialize
Re: Double-free in DLS unitialize
- Subject: Re: Double-free in DLS unitialize
- From: Michael Norris <email@hidden>
- Date: Wed, 25 Jun 2003 20:08:59 +1200
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.
Bug? Feature? Any light shone on this problem would be valuable.
-----------------------
Michael Norris
Composer/Programmer
8 Bidwill St
Mt Cook
Wellington 6002
NEW ZEALAND
-----------------------
Ph: +64 4 803 3644
Web:
http://mnorris.wellington.net.nz
Stroma:
http://stroma.wellington.net.nz
_______________________________________________
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.