Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28c900be authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "libandroidfw: Fatal exception of dlfree often causes the system crashed"

parents 7162c22d 9fc38626
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ static Mutex gAssetLock;
static int32_t gCount = 0;
static Asset* gHead = NULL;
static Asset* gTail = NULL;
static Mutex sLock;

int32_t Asset::getGlobalCount()
{
@@ -846,7 +847,9 @@ void _CompressedAsset::close(void)
 */
const void* _CompressedAsset::getBuffer(bool)
{
    AutoMutex _l(mCompressedAssetLock);
    if (mBuf != NULL)
        return mBuf;
    AutoMutex _l(sLock);
    unsigned char* buf = NULL;

    if (mBuf != NULL)