Ok this is a quick question for those of you who have used DX before, so i’m just after getting round to implementing the music and sound aspects of the game I’m currently working on- and I’m using DirectMusic and DirectSound for both these things respectively. Now I’ve been following the DirectX SDK documention regarding cleaning up for these objects and am using functions such as Release and Unload etc. on the various DX objects to clean up after themselves.
I’m just wondering is there anything else I have to do after this in order to properly clean up- i.e do I have to use a delete statement on them also, or is the memory deallocation managed by the system ? It seems a little suspect that (for instance in the case of DirectMusic) that I am creating this COM object and yet nowhere in the code is there an actual statement to free up the memory used by this object. Maybe it is done by the system anyhow and I don’t have to worry about, anyone know about this ? I don’t want any memory leaks in my code ! Memory leaks suck big time! :o