有内存泄漏怎么办????CTypedPtrList *m_pPipeLineList;
aicai 2002-05-09 01:19:30 void CTPRelationView::CreatePipeLineArray()
{
CTypedPtrList<CObList,CTPPipeLine*> &List = pDoc->m_pPipeLine ;
m_pPipeLineList = &List ;
for( int i = 0 ; i < 10 ; i ++ )
{
CTPPipeLine* pPipeLineItem = new CTPPipeLine();
pPipeLineItem->nID = i ;
m_pPipeLineList->AddTail( pPipeLineItem );
}
}
void CTPRelationDoc::DeleteContents()
{
while( !m_pPipeLine.IsEmpty() )
{
delete m_pPipeLine.RemoveHead() ;
}
CDocument::DeleteContents();
}
为什么还有内存泄漏?????