Ignore:
Timestamp:
Mar 3, 2015 2:41:27 AM (9 years ago)
Author:
ming
Message:

Fixed #1818: Fixed destruction of locked mutex (thanks to Denis Poltorak for the Helgrind report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c

    r4886 r4987  
    448448        pj_pool_release(codec_factory.pool); 
    449449        codec_factory.pool = NULL; 
     450        pj_mutex_unlock(codec_factory.mutex); 
    450451        return PJ_EINVALIDOP; 
    451452    } 
     
    456457     
    457458    /* Destroy mutex. */ 
     459    pj_mutex_unlock(codec_factory.mutex); 
    458460    pj_mutex_destroy(codec_factory.mutex); 
     461    codec_factory.mutex = NULL; 
    459462 
    460463    /* Destroy pool. */ 
Note: See TracChangeset for help on using the changeset viewer.