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

Commit 9eb60fac authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Delete pAsset* when failing to open chunk from FileAsset"

parents 19b7f244 40e0d2a9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -292,8 +292,10 @@ Asset::Asset(void)

    pAsset = new _FileAsset;
    result = pAsset->openChunk(dataMap);
    if (result != NO_ERROR)
    if (result != NO_ERROR) {
        delete pAsset;
        return NULL;
    }

    pAsset->mAccessMode = mode;
    return pAsset;