Browse code

b/f: fix small mem leak on timers for non-existent sessions

thanks to Brett for reporting

Stefan Sayer authored on 04/07/2014 14:31:00
Showing 1 changed files
... ...
@@ -88,8 +88,8 @@ void _AmAppTimer::app_timer_cb(app_timer* at)
88 88
       user_timers[at->get_q_id()][at->get_id()] = at_local;
89 89
     } else {
90 90
       DBG("timer fired: %d for '%s'\n", at->get_id(), at->get_q_id().c_str());
91
-      AmEventDispatcher::instance()->post(at->get_q_id(),
92
-					  new AmTimeoutEvent(at->get_id()));
91
+      AmSessionContainer::instance()->postEvent(at->get_q_id(),
92
+						new AmTimeoutEvent(at->get_id()));
93 93
       delete at;
94 94
     }
95 95