草庐IT

nTextLen

全部标签

c++ - 我的程序泄漏了 boost::shared_ptr 拥有的资源

我看不出为什么我的程序会泄漏,也许你能发现它。typedefboost::shared_ptrStringPtr;typedefstd::pairWMapPair;typedefstd::mapWindowMap;//thiscallbackpopulatestheWindowMap(m_Windows)byaddingaWMapPaireachtimeBOOLCALLBACKEnumWindowsCallback(HWNDhWnd){//addsthiswindowtotheWindowMap,alongwithitstitletextBOOLbRetVal=FALSE;intnTe