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

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

Merge "CCodec: fix nullptr deref at initiateReleaseIfStuck" into sc-dev

parents 1f08556b 1238007f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2441,6 +2441,11 @@ void CCodec::initiateReleaseIfStuck() {
    C2String compName;
    {
        Mutexed<State>::Locked state(mState);
        if (!state->comp) {
            ALOGD("previous call to %s exceeded timeout "
                  "and the component is already released", name.c_str());
            return;
        }
        compName = state->comp->getName();
    }
    ALOGW("[%s] previous call to %s exceeded timeout", compName.c_str(), name.c_str());