diff options
author | George Joseph <gjoseph@digium.com> | 2017-02-09 17:05:01 -0700 |
---|---|---|
committer | George Joseph <gjoseph@digium.com> | 2017-02-23 15:23:15 -0700 |
commit | 9c05ddbdddb80d46a0621b519858b37d2e7c01fb (patch) | |
tree | 1ef5ea48ee9c9c70f293bedcd0e4da14790d3af6 /res/res_pjsip_history.c | |
parent | debaf377be3337cc9e3ca81a0c7b555eaa7f78ec (diff) |
pjproject_bundled: Update for pjproject 2.6
* Removed all 2.5.5 functional patches.
* Updated usages of pj_release_pool to be "safe".
* Updated configure options to disable webrtc.
* Updated config_site.h to disable webrtc in pjmedia.
* Added Richard Mudgett's recent resolver patches.
Change-Id: Ib400cc4dfca68b3d07ce14d314e829bfddc252c7
Diffstat (limited to 'res/res_pjsip_history.c')
-rw-r--r-- | res/res_pjsip_history.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/res/res_pjsip_history.c b/res/res_pjsip_history.c index 651f19dea..0b50f6817 100644 --- a/res/res_pjsip_history.c +++ b/res/res_pjsip_history.c @@ -608,8 +608,13 @@ static void pjsip_history_entry_dtor(void *obj) struct pjsip_history_entry *entry = obj; if (entry->pool) { - pj_pool_release(entry->pool); + /* This mimics the behavior of pj_pool_safe_release + * which was introduced in pjproject 2.6. + */ + pj_pool_t *temp_pool = entry->pool; + entry->pool = NULL; + pj_pool_release(temp_pool); } } |