> I have a memory leak. I'm not sure yet if it's in the library, or my faulty > use of > it. ... > char *foo = str.transcode();
transcode() allocates space for the char* using new[]; the caller is responsible for delete[]ing it. This isn't clearly documented; the description of transcode() says that it returns a copy of the string, but it doesn't explicitly say that the caller must delete[]. - irving -
