For anyone that feels like assisting with tracking down memory leaks, heres a good tool for it..
This utility will work on both linux and windows (you have to modify the sourcecode a bit, so you'll need to understand the compile process. I wouldn't recommend trying this for the faint of heart, but this type of analysis definitely seperates the men from the boys! lol)
http://prj.softpixel.com/mcd/
Compile it in, throw in some checks, and see what you find !