< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] SipMessage::make


Yes you would need to delete the message when you are done - make() new's a new SipMessage:

SipMessage*
SipMessage::make(const Data& data,  bool isExternal)
{
   Transport* external = (Transport*)(0xFFFF);
   SipMessage* msg = new SipMessage(isExternal ? external : 0);
.....

Scott

On Thu, May 2, 2013 at 12:14 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
Hi, I have below code:

string messagefrombuffer = messagetext;

Data d(messagefrombuffer.c_str(), messagefrombuffer.length());
SipMessage * msg = SipMessage::make(messagefrombuffer);


Once done, shall I use "delete msg" to release the memory ?

Best regards,

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/