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

Commit 7b973eb8 authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "omx: prevent crash at MuxOMX::freeNode for already freed nodes" into nyc-mr1-dev

parents 96d37954 6fb1ff39
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -303,6 +303,12 @@ status_t MuxOMX::allocateNode(
status_t MuxOMX::freeNode(node_id node) {
    Mutex::Autolock autoLock(mLock);

    // exit if we have already freed the node
    if (mNodeLocation.indexOfKey(node) < 0) {
        ALOGD("MuxOMX::freeNode: node %d seems to be released already --- ignoring.", node);
        return OK;
    }

    status_t err = getOMX_l(node)->freeNode(node);

    if (err != OK) {