#include "StdAfx.h" #include "SipAccount.h" CSipAccount::CSipAccount(void) { } CSipAccount::~CSipAccount(void) { Free(); } /***************************************************************** **【函数名称】 Free **【函数功能】 释放所有sip账户信息 **【参数】 **【返回值】 ****************************************************************/ void CSipAccount::Free( void ) { while(m_nCount > 0) { SIP_ACCOUNT* pAccount = RemoveHead(); ASSERT(pAccount != NULL); delete pAccount; } }