I see memory leaks.
A: Refer to this page regarding
memory usage by the Chilkat C++ libs.
Do I need to delete the string returned by a method?
A: The general rule is that if a method returns a "const
char *", then you shouldn't delete it. There should be
no methods that return a "char *". Methods that
copy a string generally use the CkString class.
Do I need to delete the CkXml returned by a method?
A: Yes. You'll notice that it doesn't return a "const
CkXml *". Any method that returns a pointer that is not
"const" implicitly indicates that the returned object
or memory is under your programs control and should be deleted
by your program.