diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2017-01-19 07:41:25 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2017-01-19 07:41:25 +0000 |
commit | 52bd651923fc669cd58007de4018cd6bdb94f329 (patch) | |
tree | 663e8575b34ae178240a4383bdab9cc8a8b00c6f /pjnath/src/pjnath-test/ice_test.c | |
parent | 8ac264258cc6242cade69f1c5964388bcfc76e15 (diff) |
Re #1513: Applied the new API pj_pool_safe_release().
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src/pjnath-test/ice_test.c')
-rw-r--r-- | pjnath/src/pjnath-test/ice_test.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pjnath/src/pjnath-test/ice_test.c b/pjnath/src/pjnath-test/ice_test.c index 80f8c480..98456aaa 100644 --- a/pjnath/src/pjnath-test/ice_test.c +++ b/pjnath/src/pjnath-test/ice_test.c @@ -402,11 +402,7 @@ static void destroy_sess(struct test_sess *sess, unsigned wait_msec) sess->server2 = NULL; } - if (sess->pool) { - pj_pool_t *pool = sess->pool; - sess->pool = NULL; - pj_pool_release(pool); - } + pj_pool_safe_release(&sess->pool); } static void ice_on_rx_data(pj_ice_strans *ice_st, |