pWnd->GetWindowText(sequenceName);
Allocates memory in the CString which won't be freed until the string goes out of scope..
CString (varies with version) uses pointer sharing and delayed garbage collection.
So it's possible that the memory may hang around a while even after it goes out of scope.
Memory Leak detection won't necessarily be valid until your program is closing.
******
Put the following macros in every CPP file after your header includes.
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
This will allow the debugger to track every memory allocation and if you have leaks will show you those locations (in the output window) when the program exits.