[reSIProcate] DUM Dialog.cxx Erro Code

Byron Campen bcampen at estacado.net
Tue Feb 6 08:20:31 CST 2007


	Go look at the implementations of ~ClientSubscription() and  
~ServerSubscription(). They remove themselves from the data structures.

Best regards,
Byron Campen

>  Hello:
>
> Dialog::~Dialog()
> {
>    DebugLog ( <<"Dialog::~Dialog() ");
>
>    mDestroying = true;
>
>    while (!mClientSubscriptions.empty())
>    {
>       delete *mClientSubscriptions.begin();
>    }
>    while (!mServerSubscriptions.empty())
>    {
>       delete *mServerSubscriptions.begin();
>    }
>
>    delete mInviteSession;
>    mDialogSet.mDialogs.erase(this->getId());
>    delete mAppDialog;
>    if(!mReUseDialogSet)
>    {
>       mDialogSet.possiblyDie();
>    }
> }
>
> in this function;
>
>    while (!mClientSubscriptions.empty())
>    {
>       delete *mClientSubscriptions.begin();
>    }
>    while (!mServerSubscriptions.empty())
>    {
>       delete *mServerSubscriptions.begin();
>    }
>
> must change to :
>    while (!mClientSubscriptions.empty())
>    {
>       delete *mClientSubscriptions.begin();
> 	  mClientSubscriptions.pop_front();
>    }
>    while (!mServerSubscriptions.empty())
>    {
>       delete *mServerSubscriptions.begin();
>       mServerSubscriptions.pop_front();
>    }
>
> otherwise it should be a dead loop!
>  				
> --------------
> fancy_xiao
> 2007-02-06
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070206/60ea0d03/attachment.bin>


More information about the resiprocate-devel mailing list