提交 873c1caa authored 作者: Anthony Minessale's avatar Anthony Minessale

udpate

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@882 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 bc69b89c
......@@ -1547,13 +1547,16 @@ static void teletone_destroy(JSContext *cx, JSObject *obj)
struct teletone_obj *tto = JS_GetPrivate(cx, obj);
switch_memory_pool *pool;
if (tto) {
pool = tto->pool;
if (tto->timer) {
switch_core_timer_destroy(tto->timer);
}
teletone_destroy_session(&tto->ts);
switch_core_destroy_memory_pool(&pool);
switch_core_codec_destroy(&tto->codec);
pool = tto->pool;
tto->pool = NULL;
if (pool) {
switch_core_destroy_memory_pool(&pool);
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论