- Timestamp:
- Jan 19, 2017 7:41:25 AM (8 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/dns_server.c
r5350 r5534 125 125 } 126 126 127 if (srv->pool) { 128 pj_pool_t *pool = srv->pool; 129 srv->pool = NULL; 130 pj_pool_release(pool); 131 } 127 pj_pool_safe_release(&srv->pool); 132 128 133 129 return PJ_SUCCESS; -
pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c
r5477 r5534 514 514 } 515 515 516 if (resolver->pool) { 517 pj_pool_t *pool = resolver->pool; 518 resolver->pool = NULL; 519 pj_pool_release(pool); 520 } 516 pj_pool_safe_release(&resolver->pool); 517 521 518 return PJ_SUCCESS; 522 519 } -
pjproject/trunk/pjlib/include/pj/pool_i.h
r5533 r5534 98 98 pj_pool_t *pool = *ppool; 99 99 *ppool = NULL; 100 pj_pool_release(pool); 100 if (pool) 101 pj_pool_release(pool); 101 102 } -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/legacy_dev.c
r3553 r5534 142 142 143 143 if (status == PJ_SUCCESS) { 144 pj_pool_t *pool = wf->pool; 145 wf->pool = NULL; 146 pj_pool_release(pool); 144 pj_pool_safe_release(&wf->pool); 147 145 } 148 146 … … 456 454 457 455 if (status == PJ_SUCCESS) { 458 pj_pool_t *pool = strm->pool; 459 460 strm->pool = NULL; 461 pj_pool_release(pool); 456 pj_pool_safe_release(&strm->pool); 462 457 } 463 458 -
pjproject/trunk/pjmedia/src/pjmedia-audiodev/null_dev.c
r3553 r5534 161 161 { 162 162 struct null_audio_factory *nf = (struct null_audio_factory*)f; 163 pj_pool_t *pool = nf->pool; 164 165 nf->pool = NULL; 166 pj_pool_release(pool); 163 164 pj_pool_safe_release(&nf->pool); 167 165 168 166 return PJ_SUCCESS; -
pjproject/trunk/pjmedia/src/pjmedia-videodev/avi_dev.c
r4537 r5534 193 193 { 194 194 struct avi_factory *cf = (struct avi_factory*)f; 195 pj_pool_t *pool = cf->pool; 196 197 cf->pool = NULL; 198 pj_pool_release(pool); 195 196 pj_pool_safe_release(&cf->pool); 199 197 200 198 return PJ_SUCCESS; -
pjproject/trunk/pjmedia/src/pjmedia-videodev/colorbar_dev.c
r5050 r5534 253 253 { 254 254 struct cbar_factory *cf = (struct cbar_factory*)f; 255 pj_pool_t *pool = cf->pool; 256 257 cf->pool = NULL; 258 pj_pool_release(pool); 255 256 pj_pool_safe_release(&cf->pool); 259 257 260 258 return PJ_SUCCESS; -
pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c
r4160 r5534 416 416 } 417 417 418 if (clock->pool) { 419 pj_pool_t *pool = clock->pool; 420 clock->pool = NULL; 421 pj_pool_release(pool); 422 } 423 return PJ_SUCCESS; 424 } 425 426 418 pj_pool_safe_release(&clock->pool); 419 420 return PJ_SUCCESS; 421 } 422 423 -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r5479 r5534 2572 2572 #endif 2573 2573 2574 if (stream->own_pool) { 2575 pj_pool_t *pool = stream->own_pool; 2576 stream->own_pool = NULL; 2577 pj_pool_release(pool); 2578 } 2574 pj_pool_safe_release(&stream->own_pool); 2575 2579 2576 return PJ_SUCCESS; 2580 2577 } -
pjproject/trunk/pjmedia/src/pjmedia/transport_ice.c
r5521 r5534 1879 1879 } 1880 1880 1881 if (tp_ice->pool) { 1882 pj_pool_t *pool = tp_ice->pool; 1883 tp_ice->pool = NULL; 1884 pj_pool_release(pool); 1885 } 1881 pj_pool_safe_release(&tp_ice->pool); 1886 1882 1887 1883 return PJ_SUCCESS; -
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r5516 r5534 1805 1805 #endif 1806 1806 1807 if (stream->own_pool) { 1808 pj_pool_t *pool = stream->own_pool; 1809 stream->own_pool = NULL; 1810 pj_pool_release(pool); 1811 } 1807 pj_pool_safe_release(&stream->own_pool); 1812 1808 1813 1809 return PJ_SUCCESS; -
pjproject/trunk/pjnath/src/pjnath-test/ice_test.c
r5387 r5534 403 403 } 404 404 405 if (sess->pool) { 406 pj_pool_t *pool = sess->pool; 407 sess->pool = NULL; 408 pj_pool_release(pool); 409 } 405 pj_pool_safe_release(&sess->pool); 410 406 } 411 407 -
pjproject/trunk/pjnath/src/pjnath-test/server.c
r5387 r5534 255 255 } 256 256 257 if (test_srv->pool) { 258 pj_pool_t *pool = test_srv->pool; 259 test_srv->pool = NULL; 260 pj_pool_release(pool); 261 } 257 pj_pool_safe_release(&test_srv->pool); 262 258 } 263 259 -
pjproject/trunk/pjnath/src/pjnath/ice_session.c
r5427 r5534 462 462 pj_ice_sess *ice = (pj_ice_sess*) obj; 463 463 464 if (ice->pool) { 465 pj_pool_t *pool = ice->pool; 466 ice->pool = NULL; 467 pj_pool_release(pool); 468 } 464 pj_pool_safe_release(&ice->pool); 465 469 466 LOG4((THIS_FILE, "ICE session %p destroyed", ice)); 470 467 } -
pjproject/trunk/pjnath/src/pjnath/stun_sock.c
r5363 r5534 475 475 */ 476 476 477 if (stun_sock->pool) { 478 pj_pool_t *pool = stun_sock->pool; 479 stun_sock->pool = NULL; 480 pj_pool_release(pool); 481 } 477 pj_pool_safe_release(&stun_sock->pool); 482 478 483 479 TRACE_(("", "STUN sock %p destroyed", stun_sock)); -
pjproject/trunk/pjnath/src/pjnath/turn_session.c
r5481 r5534 329 329 /* Destroy pool */ 330 330 if (sess->pool) { 331 pj_pool_t *pool = sess->pool;332 333 331 PJ_LOG(4,(sess->obj_name, "TURN client session destroyed")); 334 335 sess->pool = NULL; 336 pj_pool_release(pool); 332 pj_pool_safe_release(&sess->pool); 337 333 } 338 334 } -
pjproject/trunk/pjnath/src/pjnath/turn_sock.c
r5521 r5534 218 218 219 219 if (turn_sock->pool) { 220 pj_pool_t *pool = turn_sock->pool;221 220 PJ_LOG(4,(turn_sock->obj_name, "TURN socket destroyed")); 222 turn_sock->pool = NULL; 223 pj_pool_release(pool); 221 pj_pool_safe_release(&turn_sock->pool); 224 222 } 225 223 } -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r5308 r5534 2011 2011 } 2012 2012 2013 if (app_config.pool) { 2014 pj_pool_release(app_config.pool); 2015 app_config.pool = NULL; 2016 } 2013 pj_pool_safe_release(&app_config.pool); 2017 2014 2018 2015 status = pjsua_destroy(); -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r5325 r5534 567 567 568 568 if (listener->factory.pool) { 569 pj_pool_t *pool = listener->factory.pool;570 571 569 PJ_LOG(4,(listener->factory.obj_name, "SIP TCP transport destroyed")); 572 573 listener->factory.pool = NULL; 574 pj_pool_release(pool); 570 pj_pool_safe_release(&listener->factory.pool); 575 571 } 576 572 } -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r5472 r5534 604 604 605 605 if (listener->factory.pool) { 606 pj_pool_t *pool = listener->factory.pool;607 608 606 PJ_LOG(4,(listener->factory.obj_name, "SIP TLS transport destroyed")); 609 610 listener->factory.pool = NULL; 611 pj_pool_release(pool); 607 pj_pool_safe_release(&listener->factory.pool); 612 608 } 613 609 }
Note: See TracChangeset
for help on using the changeset viewer.