Ticket #1513 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 months ago

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

comment:1 Changed 3 months ago by ismangil

  • Backported unset
  • Milestone changed from release-2.x to release-2.6

comment:2 Changed 2 months ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed

In 5533:

Close #1513: Added pj_pool_safe_release() API.

comment:3 Changed 2 months ago by nanang

In 5534:

Re #1513: Applied the new API pj_pool_safe_release().

Note: See TracTickets for help on using tickets.