Module: sems Branch: master Commit: 5650403d9537cd116194ae67519ea3c7151a1549 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=5650403d9537cd116194ae67519ea3c7151a1549
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Sun Mar 20 02:09:39 2011 +0100 b/f: fixes minor memory leak. --- core/SipCtrlInterface.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp index 984501e..e8eeddb 100644 --- a/core/SipCtrlInterface.cpp +++ b/core/SipCtrlInterface.cpp @@ -689,7 +689,10 @@ void SipCtrlInterface::handle_reply_timeout(AmSipTimeoutEvent::EvType evt, return; } - AmEventDispatcher::instance()->post(c2stlstr(tr->to_tag), tmo_evt); + if(!AmEventDispatcher::instance()->post(c2stlstr(tr->to_tag), tmo_evt)){ + ERROR("Could not post timeout event (sess. id: %.*s)\n",tr->to_tag.len,tr->to_tag.s); + delete tmo_evt; + } } #undef DBG_PARAM _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
