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

Commit 1dadfe4f authored by Flanker's avatar Flanker Committed by Robert Shih
Browse files

fix NPE in freeNode

Bug: 23484160
Change-Id: I634e312d04ba437b6afcf0ede34fc19ea850c944
parent 18c38e49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -261,6 +261,10 @@ status_t OMX::allocateNode(
status_t OMX::freeNode(node_id node) {
    OMXNodeInstance *instance = findInstance(node);

    if (instance == NULL) {
        return OK;
    }

    {
        Mutex::Autolock autoLock(mLock);
        ssize_t index = mLiveNodes.indexOfKey(IInterface::asBinder(instance->observer()));