diff options
Diffstat (limited to 'pjlib/include/pj/pool.h')
-rw-r--r-- | pjlib/include/pj/pool.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib/include/pj/pool.h b/pjlib/include/pj/pool.h index 9adaeca9..59cd86c8 100644 --- a/pjlib/include/pj/pool.h +++ b/pjlib/include/pj/pool.h @@ -390,6 +390,15 @@ PJ_IDECL(pj_pool_t*) pj_pool_create(pj_pool_factory *factory, */ PJ_IDECL(void) pj_pool_release( pj_pool_t *pool ); + +/** + * Release the pool back to pool factory and set the pool pointer to zero. + * + * @param ppool Pointer to memory pool. + */ +PJ_IDECL(void) pj_pool_safe_release( pj_pool_t **ppool ); + + /** * Get pool object name. * |