Easy way of finding leaks in C/C++ code: vld.
- Install it
- Add it to the include paths and to the directories
- Make sure the vld dll is in PATH ( may require an IDE restart )
- include in one of your sources
- run the code in debug
- check the output window, after you close the binary
- fix leaks