[reSIProcate] memory leak on ServerPublication.
Noiile
noiile at hotmail.com
Thu Nov 24 22:57:19 CST 2005
resiprocate-devel, Hello
In code ServerPublication::updateMatchingSubscriptions(), ServerPublication release the ownership of mLastBody.mContents and mLastBody.mAttributes.
I don't understand why do it like this, and I found that it will result in memory leaks because no one will delete object mContents and mAttributes, ServerPublication lost the ownership of them.
ServerPublication::updateMatchingSubscriptions()
{
........
//Noiile:MEMORY LEAKS!!!
//mLastBody.mContents.release();
//mLastBody.mAttributes.release();
}
Noiile, noiile at hotmail.com
2005-11-25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051125/022546f4/attachment.htm>
More information about the resiprocate-devel
mailing list