Commit 55720bfa authored by Simon Morlat's avatar Simon Morlat

add log, remove unused home

parent eb628483
......@@ -42,6 +42,7 @@ MsgSip::MsgSip(const MsgSip &msgSip) {
msg_t *freshCopy=msg_dup(msgSip.mMsg);
assignMsg(freshCopy);
msg_destroy(freshCopy);
LOGD("New MsgSip %p copied from MsgSip %p",this, &msgSip);
}
const char * MsgSip::print() {
......
......@@ -43,11 +43,10 @@ void ForkContext::sOnFinished(su_root_magic_t *magic, su_timer_t *t, su_timer_ar
ForkContext::ForkContext(Agent *agent, const std::shared_ptr<RequestSipEvent> &event, shared_ptr<ForkContextConfig> cfg, ForkContextListener* listener) :
mListener(listener),
mAgent(agent),
mEvent(make_shared<RequestSipEvent>(event)),
mEvent(make_shared<RequestSipEvent>(event)), // Is this deep copy really necessary ?
mCfg(cfg),
mLateTimer(NULL),
mFinishTimer(NULL){
su_home_init(&mHome);
init();
}
......@@ -250,7 +249,6 @@ const shared_ptr<RequestSipEvent> &ForkContext::getEvent() {
ForkContext::~ForkContext() {
if (mLateTimer)
su_timer_destroy(mLateTimer);
su_home_deinit(&mHome);
}
void ForkContext::onFinished() {
......
......@@ -73,7 +73,6 @@ private:
void init();
void processLateTimeout();
protected:
su_home_t mHome;
Agent * mAgent;
std::shared_ptr<RequestSipEvent> mEvent;
std::shared_ptr<ResponseSipEvent> mLastResponseSent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment