CMEM-allocated memory must be freed in the same thread it was allocated from.
Because of this, the "codec_stop" function should free
anything allocated by
the "codec_start" function, and "exit_audio"
should free anything allocated by
the "init_audio" function. The rendezvous handle
"waitOnBufTab" and the
BufTab "hOutBufTab" are being freed in the wrong place in
Patch with proposed fix is attached.