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

    r4931 r4987  
    470470        pj_pool_release(codec_factory.pool); 
    471471        codec_factory.pool = NULL; 
     472        pj_mutex_unlock(codec_factory.mutex); 
    472473        return PJ_EINVALIDOP; 
    473474    } 
     
    478479     
    479480    /* Destroy mutex. */ 
     481    pj_mutex_unlock(codec_factory.mutex); 
    480482    pj_mutex_destroy(codec_factory.mutex); 
     483    codec_factory.mutex = NULL; 
    481484 
    482485    /* Destroy pool. */ 
Note: See TracChangeset for help on using the changeset viewer.