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 /pjlib/include/pj | |
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 'pjlib/include/pj')
-rw-r--r-- | pjlib/include/pj/pool_i.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib/include/pj/pool_i.h b/pjlib/include/pj/pool_i.h index b57530c8..65eeb5ae 100644 --- a/pjlib/include/pj/pool_i.h +++ b/pjlib/include/pj/pool_i.h @@ -97,5 +97,6 @@ PJ_IDEF(void) pj_pool_safe_release( pj_pool_t **ppool ) { pj_pool_t *pool = *ppool; *ppool = NULL; - pj_pool_release(pool); + if (pool) + pj_pool_release(pool); } |