mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
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
This commit is contained in:
@@ -1053,7 +1053,16 @@ static void rtp_ioqueue_thread_destroy(struct ast_rtp_ioqueue_thread *ioqueue)
|
||||
pj_thread_destroy(ioqueue->thread);
|
||||
}
|
||||
|
||||
pj_pool_release(ioqueue->pool);
|
||||
if (ioqueue->pool) {
|
||||
/* This mimics the behavior of pj_pool_safe_release
|
||||
* which was introduced in pjproject 2.6.
|
||||
*/
|
||||
pj_pool_t *temp_pool = ioqueue->pool;
|
||||
|
||||
ioqueue->pool = NULL;
|
||||
pj_pool_release(temp_pool);
|
||||
}
|
||||
|
||||
ast_free(ioqueue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user