[reSIProcate] iteration corruption ending an in-dialog subscription
Scott Godin
slgodin at icescape.com
Sun Apr 20 16:38:41 CDT 2008
Sorry for the late response - fix looks good to me. : )
From: resiprocate-devel-bounces at resiprocate.org
[mailto:resiprocate-devel-bounces at resiprocate.org] On Behalf Of Justin
Matthews
Sent: April 14, 2008 1:48 PM
To: 'resiprocate-devel'
Subject: [reSIProcate] iteration corruption ending an in-dialog subscription
I think there is a problem ending client and server subscriptions from
Dialog::end. Both the Dialog::end function and the destructor of the
ServerSubscription or ClientSubscription classes reference the same
collection. There is similar code in Dialog.cxx to avoid this situation.
Attached is the patch. If there are no objections I will apply it.
Dialog::end()->m(Server|Client)Subscriptions
(Server|Client)Subscription::~
(Server|Client)Subscription()->mDialog.m(Server|Client)Subscriptions->remove
(this).
Thanks,
-justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080420/f4519c6d/attachment.htm>
More information about the resiprocate-devel
mailing list