Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#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

In 5533:

Close #1513: Added pj_pool_safe_release() API.

comment:3 Changed 8 years ago by nanang

In 5534:

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

Note: See TracTickets for help on using tickets.