|The code that you have shown does not appear to have any memory leaks.
Search for the
new keyword or functions like
VirtualAlloc etc. in all the code. Then you can see if the allocated memory is being freed.
Alternatively you can use the
_CrtMemDifference functions to find exactly where the memory leak happens.
I love work. It gives me something to do between weekends.