成员变量: RBuf16 iDownloadData16;
析构函数里调用了 iDownloadData16.Close();
退出程序时,在 iDownloadData16.Assign( CnvUtfConverter::ConvertToUnicodeFromUtf8L(iDownloadData8) );处有内存泄露
原因是:
Assign()的描述是
Transfers ownership of the specified heap descriptor to this object.
也就是说RBuf16会拥有新object的所有权.那么RBuf16以前的内容哪里去了?感觉应该先Close,再Assign.