[reSIProcate] memoru allocation & garbage collection

Nicolas LEGROS Nicolas.LEGROS at teleca.fr
Wed Oct 11 03:49:21 CDT 2006


Here's an example of an application running over DUM:

resip::SharedPtr<resip::UserProfile> profile(new resip::UserProfile()); 
    Data caller("sip:456 at 127.0.0.1");
    profile->setDefaultFrom(NameAddr(caller)); 
    
    SharedPtr<SipMessage> inv = mDum.makeInviteSession(NameAddr(callee),
        profile,&sdpContent, new AppDialogSet(*dumUac)); 


My question is concerning memory allocation and garbage collection.
In the example (see above), the application makes 2 memories allocation:
- new UserProfile()
- new AppDialogSet(*dumUac)

When the call will end, who will free this memory: DUM, Resiprocate
stack, the application?
Thanks by advance
Nicolas L.





More information about the resiprocate-devel mailing list