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/ipp_codecs.c

    r4002 r4987  
    767767        pj_pool_release(ipp_factory.pool); 
    768768        ipp_factory.pool = NULL; 
     769        pj_mutex_unlock(ipp_factory.mutex); 
    769770        return PJ_EINVALIDOP; 
    770771    } 
     
    775776     
    776777    /* Destroy mutex. */ 
     778    pj_mutex_unlock(ipp_factory.mutex); 
    777779    pj_mutex_destroy(ipp_factory.mutex); 
     780    ipp_factory.mutex = NULL; 
    778781 
    779782    /* Destroy pool. */ 
Note: See TracChangeset for help on using the changeset viewer.