Fixing the double delete problem in UdpSocket2ManagerWindow. PopFront deletes the items, to there is no need to delete item explicitly.

Review URL: http://webrtc-codereview.appspot.com/333014

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1268 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mallinath@webrtc.org 2011-12-21 15:36:44 +00:00
parent 7d8c72e2db
commit 03532b5f41

View File

@ -68,8 +68,6 @@ UdpSocket2ManagerWindows::~UdpSocket2ManagerWindows()
UdpSocket2WorkerWindows* pWorker;
while((pItem = _workerThreadsList.First()) != NULL)
{
pWorker = (UdpSocket2WorkerWindows*)pItem->GetItem();
delete pWorker;
_workerThreadsList.PopFront();
}
@ -217,8 +215,6 @@ bool UdpSocket2ManagerWindows::StartWorkerThreads()
UdpSocket2WorkerWindows* pWorker;
while((pItem = _workerThreadsList.First()) != NULL)
{
pWorker = (UdpSocket2WorkerWindows*)pItem->GetItem();
delete pWorker;
_workerThreadsList.PopFront();
}
_pCrit->Leave();