Bug in PJSUA sample app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

pjsua_app.c (
http://svn.pjsip.org/repos/pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c)
contains a bug which might cause problems for people adapting this sample
application.


This code:


    if (app_config.pool) {
pj_pool_release(app_config.pool);
app_config.pool = NULL;
    }

    status = pjsua_destroy();


ought to be:


    status = pjsua_destroy();

    if (app_config.pool) {
pj_pool_release(app_config.pool);
app_config.pool = NULL;
    }


because pjsua_destroy() makes use of app_config.pool (e.g. in
pjmedia_delay_buf_destroy()) so the pool ought not to be released until
after pjsua_destroy() returns.


Warmest regards,

Jeff Lawson
Software Development
Localphone <http://www.localphone.com/> - *ITSPA Award for Best Consumer
VoIP Provider 2013/2014*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140403/9069abc7/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux