fix memory leak

CString returns pointer, that should be deallocated explicitly
Merge pull request #1 from Yuras/memory-leak

fix memory leak