How to release memory allocated for MIDISendSysex ??
How to release memory allocated for MIDISendSysex ??
- Subject: How to release memory allocated for MIDISendSysex ??
- From: "Marco Hinic" <email@hidden>
- Date: Thu, 24 Aug 2006 16:09:15 +0200
Our new application does use a lot of sysex messages.
We are using MIDISendSysex function and the associated
MIDISysexSendRequest structure to do so.
For each message, a new data buffer is allocated with malloc and we also
ceate a new MIDISysexSendRequest structure.
Can we simply free the message data and delete MIDISysexSendRequest in
the MIDICompletionProc ?
Deleting the MidiSysexSendRequest does not seems to cause any trouble
but free'ing it's data leads to a message from the malloc that we are
freeing a block that was not allocated by malloc or free'd twice. Is the
free of the data automatic ? We removed the free but are afraid there's
going to be memory leaks in some parts.
Thanks,
-----------------------------------------------------------
Marco Hinic (email@hidden)
ArKaos engine architect & CEO
http://www.arkaos.net
In cyberspace nobody knows you're a cat
-----------------------------------------------------------
_______________________________________________
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