Boost logo

Boost Users :

From: Aaron Campbell (yg-boost-users_at_[hidden])
Date: 2003-08-07 15:21:44

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,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at