0
0

I use FMOD::Memory_Initialize( malloc(10 * 10241024), 10 * 10241024, 0, 0, 0);

and everything works however in my debug build with visual leak detector running it reports that this functions leaks.

I’m I doing anything wrong here, does FMOD not clean it’s self up or is it perhaps simply due to the fact I pass the memory that’s created (which vld can see) and it gets removed by FMOD which it can’t?

  • You must to post comments
0
0

Hi Adversus,

You have to clean up that memory yourself after you shutdown FMOD. The reason being there is no way for FMOD to know how to free that memory, it might be a simple malloc like you have showed, it could also be something else like a new[] or even just a chunk of memory from some larger allocation.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.