Module: sems Branch: master Commit: 9356fee7144def125ef1e2a8d768ee123b42f3c2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9356fee7144def125ef1e2a8d768ee123b42f3c2
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Fri Jul 4 16:31:00 2014 +0200 b/f: fix small mem leak on timers for non-existent sessions thanks to Brett for reporting --- core/AmAppTimer.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmAppTimer.cpp b/core/AmAppTimer.cpp index 921c6ff..0bf9eec 100644 --- a/core/AmAppTimer.cpp +++ b/core/AmAppTimer.cpp @@ -88,8 +88,8 @@ void _AmAppTimer::app_timer_cb(app_timer* at) user_timers[at->get_q_id()][at->get_id()] = at_local; } else { DBG("timer fired: %d for '%s'\n", at->get_id(), at->get_q_id().c_str()); - AmEventDispatcher::instance()->post(at->get_q_id(), - new AmTimeoutEvent(at->get_id())); + AmSessionContainer::instance()->postEvent(at->get_q_id(), + new AmTimeoutEvent(at->get_id())); delete at; } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
