shared_ptr memory leak (newb)

7 Aug
2003
7 Aug
'03
8:21 p.m.
why does this leak memory from the first call to "new"? how can I prevent the leak? wchar_t* pmem = new wchar_t[10]; boost::shared_ptr<std::wstring> cp ( new std::wstring(pmem) ); thanks for the help, .Aaron
8003
Age (days ago)
8003
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aaron Campbell