[Tremor] Question to memory leaks in Tremor

Lorber, Markus markus.lorber at siemens.com
Wed Sep 20 07:11:46 PDT 2006


Hello,
 
I am working with Tremor (codec source as of date 2002 09 02, version
1.0.0) on a Blackfin DSP. Basically my implementaion works but there
remains a problem with memory leaks. If I playback an OggVorbis File
several times (were I always call ov_open_callbacks(),..., ov_read(),
ov_clear() similar to the example code), it ends up in a DSP-exception
because of a heap overflow.
 
I found some hints in the Tremor forum that there exists a memory leak
problem. Is that correct or could it be that I do a wrong usage of the
API-functions (e.g. ov_clear())? 
 
I am planing to do a work-around by implementing a list, were each
pointer allocated by malloc(), calloc(), realloc() is written to. Every
free() (and if neccessary every realloc() ) would clear the
corresponding pointer in the list. Finally after having finished an
OggVorbis stream, I would do a free() on each pointer remaining after
ov_clear() to clean up the heap.
 
My question now is: Does enyone have suggestions for a better
work-around or does a newer version of Tremor exist, which overcomes the
memory leak problem?
 
Thank you and best regards,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/tremor/attachments/20060920/648478d6/attachment.html


More information about the Tremor mailing list