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
7974
Age (days ago)
7974
Last active (days ago)
0 comments
1 participants
participants (1)
-
Aaron Campbell