#1513 closed enhancement (fixed)
pj_pool_safe_release() API
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.6 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
The common pattern to release pool:
pj_pool_t *tmp_pool = obj->pool; obj->pool = NULL; pj_pool_release(tmp_pool);
should go into an API:
pj_pool_safe_release(pj_pool_t **p_pool);
Thanks Bogdan Krakowski for suggestion.
Change History (3)
comment:1 Changed 8 years ago by ismangil
- Backported unset
- Milestone changed from release-2.x to release-2.6
comment:2 Changed 8 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 8 years ago by nanang
In 5534:
Note: See
TracTickets for help on using
tickets.
In 5533: